Forum

Author Topic: Mapbox Upload - Bad Request  (Read 1597 times)

Resourceful

  • Newbie
  • *
  • Posts: 36
    • View Profile
Mapbox Upload - Bad Request
« on: June 01, 2021, 07:33:21 AM »
I get a "Bad request" error when trying to use the Upload function to Mapbox. 

I will also check with Mapbox, I would like this to work! 

Thank you,
« Last Edit: June 01, 2021, 07:37:35 AM by Resourceful »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Mapbox Upload - Bad Request
« Reply #1 on: June 01, 2021, 01:15:31 PM »
Hello Resourceful,

Which Metashape version you are using and what is the size of the DEM to be uploaded?

I've just tried to upload 20K x 20K DEM to MapBox and it has been completed successfully.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Resourceful

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Mapbox Upload - Bad Request
« Reply #2 on: June 01, 2021, 07:20:58 PM »
Thank you Alexey,

I am running version 1.7.3, and the DEM is approximately 3.5 GB total size. 

Mapbox uploading is new to me, so it could be something I am doing incorrectly on that side of things.  The API key that I am trying to use there is set to Uploads:Write, and no URL specified.  In Metashape, I insert the API key that is produced.

For the "owner" space I have inserted my user name for Mapbox.

Thanks for getting back to me on this..

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Mapbox Upload - Bad Request
« Reply #3 on: June 01, 2021, 07:26:45 PM »
Hello Resourceful,

Yes, you should use the information from https://account.mapbox.com/access-tokens/ page, corresponding to your username (not Default line). You should see the Secret Token on that page, if it not present, you need to generate this sequence and save to some safe location on your computer.

(the one you need to use is the bottom one on the attached screenshot).
« Last Edit: June 01, 2021, 07:29:20 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC

Resourceful

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Mapbox Upload - Bad Request
« Reply #4 on: June 01, 2021, 11:57:05 PM »
Still a 'Bad Request" result.

I followed the settings you have in your screenshot - still not working..  I am wondering if it is something on the MapBox side, or is the warning in the screenshot above affecting this?

Thank you,

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Mapbox Upload - Bad Request
« Reply #5 on: June 02, 2021, 08:57:40 PM »
Hello Resourceful,

Do you observe similar behavior for any project (orthomosaic and DEM)? In case the problem is specific for certain dataset, please send the PDF report from that project to support@agisoft.com.

If possible, please specify the OS version that you are using, the dimensions of the DEM for upload (total size, tile size).


Upd: seems that I was able to reproduce similar problem, when trying to upload DEM with about 200k x 200k pixel dimensions. We'll investigate the problem further on our side, as we've got a way to reproduce it. Smaller DEM, as I have mentioned before, was uploaded successfully.
« Last Edit: June 02, 2021, 09:42:33 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC