Hi, I am trying the bulk import tool for my users, but the job remains as “pending” for hours.
-
When I send a JSON file to Auth0 Management API v2, I can confirm a job is successfully generated; however, the status lasts for “pending” for a long time. It doesn’t import my users although I sent a file 2 hours ago.
-
It returns the following I received when creating the job:
(
[type] => users_import
[status] => pending
[connection_id] => **CONNECTION_ID**
[connection] => tkm-test
[created_at] => 2019-09-03T07:07:25.349Z
[id] => **ID**
)
- For 30 seconds, I continued polling the status from Auth0 Management API v2 each second. The response I received in these 30 requests is below which is the same as the one I received when creating.
(
[type] => users_import
[status] => pending
[connection_id] => **CONNECTION_ID**
[connection] => tkm-test
[created_at] => 2019-09-03T07:07:25.349Z
[id] => **ID**
)
- The following error occurred when I tried to make a third request for creating the job.
POST https://MY_TENANT.auth0.com/api/v2/jobs/users-imports` resulted in a `429 Too Many Requests` response:
{"statusCode":429,"error":"Too Many Requests","message":"There are 2 active import users jobs, please wait until some of (truncated...)
- I confirmed that the same error occurs for the additional requests after that, but the error is resolved after an hour. However, the problem with the “pending” status is persisted.
I hope this information is clear enough to investigate the problem.
Thanks so much for your help!