I’m working on a project related to data migration. Approximately ~16000 tickets and very many notes (from 1 to 6 per ticket) must be created in Freshservice.
The migration script uses special queueing/throttling mechanisms in order to prevent hitting the Freshservice API limits. This way, only 1 request is sent to Freshservice every 2 seconds.
I’ve launched the migration script I’ve prepared previously, but after ~13000 tickets got successfully created, every next request got the following response:
"description": "Validation failed",
"message": "User blocked! No more tickets allowed for this user",
As far as I remember, this is some sort of a Freshworks DDoS prevention mechanism, or something else related to security.
However, I could not find any information about that in the Freshservice documentation. The list of mentioned error codes (Error -> Error Codes) does not mention any other descriptions for the "invalid_value" error rather than:
“This code indicates that a request contained an incorrect or blank value, or was in an invalid format”.
I assume that it could be very important for us, developers, to know technical details of such limit/restriction/security mechanism.
Could you please tell us more about this error and how to avoid it in the future?
Thank you for the response.
No, fortunately the script is not related to these categories.
I’ve tried several different API keys, including the previously used one (when 13 000 tickets got successfully created):
All API keys work perfectly well when I send requests in order to create a demo/test ticket from Postman, for example.
However, I am still getting the very same error as mentioned in the original post when use any of the API keys and run the script.
Also, I’m using a locally running proxy for the script to work (otherwise requests to the 3rd party service I’m migrating data from simply won’t work), so I guess that some relevant IP address got banned by Freshservice. This is just an assumption though.
I’m currently implementing a workaround by creating a VPS to send the requests to Freshservice from in order to complete the migration by importing the remaining ~3000 tickets and relevant notes.
Update: tried setting up a VPS - didn’t help, still getting the very same error for any API key used. So, the network/IP address is not the issue. New theory: the new tickets’ requester’s email got banned by Freshservice.
That is great! I suspect that the internal spam checker blacklisted the email id after having received several requests from the same email id in a short span of time and hence the user was blocked. However, i will verify that this is the case and if we have any limits on the number of requests/ time interval and post, and sure it would be great to have this conveyed in the error message or documentation. Thanks for the feedback!