Common errors#
Beta version
The functionality is in beta. Features may change and may also work unstably.
HTTP errors#
| HTTP code | Error ID | Description |
|---|---|---|
| 204 | No Content | OPTIONS request method used, change the request method to GET |
| 400 | instance in starting process try later | The instance is in starting/restarting process. Please try again in a few seconds |
| 400 | instance is starting or not authorized | The instance is not authorized. Authorize it by the Login method or through a browser session |
| 400 | Instance account is expired. Renew your instance from personal area | The instance has expired. Renew your instance from the console |
| 400 | Instance is deleted | The instance has been deleted |
| 400 | Bad Request Validation failed | Validation error, more details in the table |
| 400 | session is no longer valid | Instagram has revoked the session. The instance is logged out and goes to notAuthorized - authorization is required again |
| 400 | session was logged out | Instagram has terminated the session forcibly. The instance is logged out and goes to notAuthorized |
| 400 | checkpoint required: confirm the login in the Instagram app, then log in again | Instagram requires a login confirmation. The instance is logged out and goes to notAuthorized: confirm the login in the official Instagram app, then authorize the instance again |
| 400 | web session is no longer valid; re-import the session | The imported browser session is no longer valid. Call Logout and authorize the instance through a browser session again |
| 400 | account is suspended by Instagram | Instagram has suspended the account. The instance goes to suspended and the session is kept: lift the restrictions in the Instagram app |
| 400 | account is private | The profile is private: its data is not available to the current account |
| 400 | request rejected | Instagram has rejected the request |
| 400 | user not found unknown username | There is no account with the specified nickname or identifier in Instagram |
| 400 | post not found | There is no post with the specified identifier in Instagram. Returned by the GetPostInfo method. In this case the EditPost, EditReel, DeletePost and DeleteReel methods respond with 200, and the rejection comes in the editPostStatus or deletePostStatus notification with status = failed and description = not found |
| 400 | media id, shortcode or post url is required | The postId value is neither a numeric identifier, nor a short code, nor a link to a post, see Post identifier |
| 400 | no existing chat with user {{chatId}} | On an instance with an imported browser session a message is sent only to an existing chat, and there is no chat with this account yet. The text contains the numeric account identifier. Start a conversation with the account in Instagram and repeat the request |
| 400 | {{field}} {{url}}: cannot be downloaded (HTTP {{code}}) {{field}} {{url}}: file cannot be downloaded | The file at the specified link cannot be downloaded. The request field (urlFile or urlFiles) and the link are given at the beginning of the text, the HTTP code of the response of the server hosting the file is given in brackets |
| 400 | account is inactive or disabled | The account is disabled or blocked by Instagram |
| 400 | Unexpected token _ in JSON at position XX | Error in JSON structure |
| 401 | Unauthorized | Problem with authorization, check the correctness of the apiTokenInstance, partnerToken |
| 403 | Forbidden | Problem with authentication, check the correctness of the idInstance and the request URL |
| 404 | Not Found | Invalid request method |
| 404 | not found | The requested resource (a message, a post, a comment) does not exist in Instagram |
| 422 | {{method}}: not available for a web session | The method is not available on an instance with an imported browser session: the list of such methods. The method name is given at the beginning of the text, for example SendReelByUrl: not available for a web session. For an instance authorized by the Login method the method is available |
| 422 | {{method}}: not available for this instance | The method is not available for this instance. The method name is given at the beginning of the text. Contact the technical support |
| 429 | action rate-limited by Instagram | Instagram has limited this kind of action or the sending to this chat. The action is suspended for the cooldown period - the request must not be repeated, see A limitation of a kind of action |
| 429 | too many requests | Too many requests to Instagram. Decrease the frequency |
| 429 | Too Many Requests | The limit on the frequency of requests to the method has been exceeded. Decrease the frequency of requests. Request frequency limits |
| 466 | correspondentsStatus | The tariff limit is used up, more details in the error body. Error body example |
| 499 | Client Closed Request | The user closed the connection while the server was processing the request. It is necessary to increase the waiting time for a response from the server and repeat the request with a delay |
| 500 | request entity too large | Json length exceeded (>100kb) |
| 500 | Internal server error | An internal service error. Repeat the request later; if the error persists, contact the technical support |
| 500 | Unexpected Instagram error | An unexpected error while executing the method. Repeat the request later; if the error persists, contact the technical support |
| 502 | Bad Gateway | The server is unable to receive a response from the target server. It is necessary to repeat the request 3 times with a delay |
| 502 | Instagram server error | An error on the Instagram side. Repeat the request later |
| 504 | Instagram did not answer | There was no answer from Instagram: the request was not processed, it can be repeated |
| 504 | Instagram error | Instagram has not performed the request without naming the reason. Repeat the request later. If the error persists, reboot the instance by the Reboot method |
Validation errors (400: Validation failed) {#400-validation-failed}#
| Error ID | Description |
|---|---|
Validation failed. Details: 'chatId' must be the numeric account or thread id, or a nickname prefixed with '@' | A username without the @ prefix or a value that is not an identifier is passed in the chatId field. How a chat is addressed |
Validation failed. Details: 'username' is not allowed | The username field is accepted by CheckAccount only: in the other methods the nickname is written in chatId with the @ prefix |
Validation failed. Details: '{{field}}' must be the numeric message id | A message identifier must contain digits only. {{field}} is the field name: quotedMessageId, idMessage or an item of the messages list, for example messages[0] |
Validation failed. Details: '{{field}}' must be an account id, not a group chat id | The method works only with an account, but the identifier of a group chat is passed in the field. {{field}} is the field name: chatId, chatIds or participantChatId |
Validation failed. Details: 'value' must contain at least one of [chatId, username] | Neither chatId nor username is specified in the CheckAccount method |
Validation failed. Details: 'chatId' with value '{{chatId}}' fails to match the required pattern: /^\d+$/ | In the group methods chatId is the group identifier: digits only |
Validation failed. Details: 'wrongFieldName' is not allowed | An extra field in the request body |
Validation failed. Details: '{{field}}' is required | A required field is missing in the request body |
Validation failed. Details: '{{field}}' is not allowed to be empty | A required field cannot be empty |
Validation failed. Details: 'message' length must be less than or equal to 1000 characters long | The message text is longer than 1000 characters |
Validation failed. Details: 'message' length must be less than or equal to 2200 characters long | The comment text is longer than 2200 characters |
Validation failed. Details: 'caption' length must be less than or equal to 2200 characters long | The post caption is longer than 2200 characters. |
Validation failed. Details: 'urlFiles' must contain less than or equal to 10 items | There are more than 10 files in the carousel |
Validation failed. Details: 'XXX' must be a string | Invalid data type for the field XXX - the field must be of type string. Fields of this type: message, idMessage, messageId, chatId, chatIdFrom, username, participantChatId, groupName, postId, commentId, quotedMessageId, parentCommentId, caption, urlFile, reaction, cursor, sessionId, code, login, password, verificationType |
Validation failed. Details: 'XXX' must be a boolean | Invalid data type for the field XXX - the field must be of type boolean. Fields of this type: like, linkPreview, allowParticipantsAddMembers, disableComments, sendAsVoice |
Validation failed. Details: 'XXX' must be an array | Invalid data type for the field XXX - the field must be of type array. Fields of this type: chatIds, urlFiles, messages, cookies |
Validation failed. Details: 'XXX' must be a number | Invalid data type for the field XXX - the field must be of type number. Fields of this type: count, importedAt, expirationDate |
Validation failed. Details: 'urlFile' must be a valid uri with a scheme matching the http\|https pattern | The link to a file must start with http:// or https:// |