[#253] API request from out PROD env. stopped working

Migrated from Redmine #253 | Author: Mateusz Przybylek (DIABDIS)
Status: Closed | Priority: High, I’m very impatient | Created: 2018-10-10


Hi SimplyBook team,
Since today we getting error like this:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 137.74.201.231:443

It is happening only from our production env. Do you have any clue what happend? Do you have any antiflood restrictions?

Request:

POST https://user-api.simplybook.it/ HTTP/1.1
Accept: application/json, application/jsonrequest
X-Company-Login: diabdis
Cache-Control: no-cache
X-Token: XXXX
Content-Type: application/json; charset=utf-8
Host: user-api.simplybook.it
Content-Length: 122
Expect: 100-continue
Accept-Encoding: gzip, deflate

{"jsonrpc":"2.0","id":2,"method":"getAvailableTimeIntervals","params":{"from":"2018-10-12","to":"2018-10-13","eventId":1}}

Redmine Admin wrote:

You did some changes in your code because named params was never accepted by this function Company public service methods - Company public service methods - SimplyBook.me

It must be “2018-10-12”,“2018-10-13”, 1 as params

Mateusz Przybylek (DIABDIS) wrote:

But it working in this way. It is simpler to us to operate with named parameters.
Anyway, server restart helped with this problem o.O
Ticket to close