IHTSDO / SNOMED-in-5-minutes

Easy-to-use tutorials for accessing SNOMED APIs within 5 min using various programming languages
Other
123 stars 56 forks source link

PHP with cURL #33

Closed speiererg closed 1 year ago

speiererg commented 1 year ago

Hi all,

I tried to make request to the API server with PHP using cURL command. I always receive a HTTP 423 status code response. Does someone already had thisi problem ?

Thank you for your help, much appreciated.

Guillaume

pgwilliams commented 1 year ago

Hi @speiererg HTTP 423 is a locked response, suggesting that the branch you're trying to access has been locked. Could you post the command you're trying to run here please? Can you see the Swagger API OK? You can check the status of the branch using the /branches/ endpoint. If the branch is locked, it will be shown in the response there.

pgwilliams commented 1 year ago

Ah, a colleague has just reminded me that if you're trying to connect to our public browser, then you might be running foul of rate limiting. That server is not expected to be accessed other than as a human would browse the system. If that is what's happening here, then we do offer the Snowstorm server in a Docker container which you could run yourself, or you could just spin up your own Snowstorm server which would not have such restrictions.

speiererg commented 1 year ago

Hi Peter and Hi Zhou,

Thanks for the help, we have installed our own Snowstorm server and everything works perfectly. Will close the thread.

Have a great day