[#1128] Today I found some API return Method not found today

Migrated from Redmine #1128 | Author: Charles Ng
Status: New | Priority: Immediate, there is BUG! | Created: 2023-11-06


I just call the API as usual and I found that it return

{
“error”: {
“code”: -32601,
“message”: “Method not found”,
“data”: null
},
“id”: “1”,
“jsonrpc”: “2.0”
}

but for some get API, such as getUnitList, it was okay. May I know anything had been update?

Redmine Admin wrote:

hi, please provide details: what is your company login, which API method you are trying to call. Raw HTTP request would be also good

Charles Ng wrote:

my company login is thenight

the API is okay before:

I use postman to try and now I convert to curl:

curl --location ‘https://user-api.simplybook.asia/admin
–header ‘X-Company-Login: thenight’
–header ‘X-User-Token: 7dc46371fb46724463aee6936b0200e0be583b428d18a46b904b86732137c7cd’
–header ‘Content-Type: application/json’
–data '{
“method”: “getBookings”,
“id”:1,
“jsonrpc”:“2.0”,

"params": [{
    "date_from":"2023-11-06",
    "date_to":"2023-11-07",
    "is_confirmed": 1,
    "unit_group_id": "",
    "order":"date_start_asc"

}]
}

Charles Ng wrote:

what it return:

{
“error”: {
“code”: -32601,
“message”: “Method not found”,
“data”: null
},
“id”: “1”,
“jsonrpc”: “2.0”
}

screenshot:

The API is works before

Leo Dimacuha wrote:

I’m also getting “Method not found” today. The method is “getStatuses” of administration service api. API documentation | SimplyBook.me Online Scheduling

Redmine Admin wrote:

hi, sorry for inconvenience, fixed.

Charles Ng wrote:

Thanks, appreciate your prompt response

Leo Dimacuha wrote:

Thank you! it is working again.