I am trying to load a very large file using a library partially built by Jesse Wilson.
I am using the attached code, but am receiving the following error after about 40 minutes. For smaller files (files that take less than 30 minutes, everything works fine)
502 Server Error: Bad Gateway for url: https://api.anaplan.com/2/0/workspaces/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/models/xxxxxxxxxxxxxxxxxxxxx...
This is after receiving these messages:
xxxxxxxxxxxxxxxxxxxxxxx.pem<class 'str'>Token validatedToken validatedNoneUploading chunk 1, Status: 204Uploading chunk 1, Status: 204Token validatedToken validatedNoneUploading chunk 2, Status: 204Uploading chunk 2, Status: 204Token validatedToken validatedNoneUploading chunk 3, Status: 204Uploading chunk 3, Status: 204Token validatedToken validated
I don't understand why it is giving me a 502 error in the same spot. I can manually upload the file in anaplan. I am re-authenticating, and then testing my authentication. It should work.
Because the connection times out after 30 minutes, this makes using APIs for large files almost impossible.