[#390] 500 Internal Server Error on getClientMembershipList

Migrated from Redmine #390 | Author: Hayden Shaw
Status: Closed | Priority: High, I’m very impatient | Created: 2019-05-29


I’m experiencing a 500 internal server error when calling getClientMembershipList.

I’m passing through an empty filter array, the client id and the signature as params. If I send through an incorrect signature or even an incorrect client id, it returns a signature error which suggests to me that something isn’t quite right when it actually has results to return.

I’m using the API successfully for various other requests.

Redmine Admin wrote:

Please provide raw http request with headers to check

Hayden Shaw wrote:

I’m using the JSON-RPC-client so not sure how i’ll be able to supply the raw request?

{"method":"getClientMembershipList","params":[[],"73","b04626817bf114e29b88272573e58302"],"id":2}

Full error it’s throwing:

[Warning] file_get_contents(https://user-api.simplybook.me/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

Redmine Admin wrote:

Please provide your company login

Hayden Shaw wrote:

The company login is ‘mccullaghcoaching’.

Hayden Shaw wrote:

Let me know if there is any other information I can supply to try and recreate. This is blocking us from a launch so hopeful of finding a solution in the coming days.

Redmine Admin wrote:

Hi, sorry for inconvenience. It was bug there, fixed now.

Hayden Shaw wrote:

Great - that’s now working.

Is there anyway I can retrieve a particular client’s memberships with the User/Admin API? I have a case where I need to create users on another system that have been made at SimplyBook first and therefore I don’t have the client hash to do anything with Client API. I’m not seeing any method that returns the client hash for a certain user within the User/Admin API.

Hayden Shaw wrote:

I forgot to mention that I’m trying to find out whether a member has any active memberships while creating them on the other system.

Redmine Admin wrote:

hi,

you may call getClientMembershipList(clientId) via Admin API without hash

Hayden Shaw wrote:

When I try that it returns a 500 like the original issue I experienced.

Redmine Admin wrote:

Hi, issue fixed. Please try now

Hayden Shaw wrote:

I just went to try it but now I’m getting an error on an earlier API call in my script on getClientList(). It is returning “Request error: Method not found” but It was just days earlier.

Redmine Admin wrote:

Are you calling it from Admin API not Public API?

Hayden Shaw wrote:

Definitely the Admin API - I’m actually finding all calls to the Admin API are failing currently.

Redmine Admin wrote:

Everything should be fine now

Hayden Shaw wrote:

Thanks - all good now.