Login problem - PERMANENT_REDIRECT

Hi,

During the recent testing of new code, my interface to your API, erroneously submitted multiple rapid login requests and since then I have been receiving the message below when attempting to login using the API.

I can still login into my account using your customer website.

Would you please advise.


MESSAGE ON API LOGIN

“The remote server returned an error: (308) PERMANENT REDIRECT.\r\n\r\n{
HandledAPIWeb
}https: //api.smarkets.com/v3/sessions\r\n\r\n{
“data”: {
“description”: “Object moved temporarily – see URI list”
},
“error_type”: “PERMANENT_REDIRECT”
}\n\uffff”

Hi Kim,

Our systems will return 308 which is the status code for a permanent redirect instead of a 301. Some clients like yours cannot handle these because they’re out of date and therefore you see the error.

To fix it, just make sure you end the urls with a slash (/) which means your won’t need to be redirected at all.

João

That’s fixed the problem…

Many thanks for your prompt response…