netresearch / dhl-shipping-m2

DHL multi-division shipping extension for Magento 2
Open Software License 3.0
13 stars 4 forks source link

Mapbox API is deprecated - HTTP 410 error #4

Closed emmathepossum closed 4 years ago

emmathepossum commented 4 years ago

When trying to use the Location Finder with a new Mapbox API Token the Map isn't loaded and you can see in the Browser Console that the API Request is returning a 410 Error. When calling the API Request separately in a new Tab you get the following Message:

{"message":"Classic styles are no longer supported; see https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 for more information"}

The Link explains that no more new requests will be accepted:

Then on June 1st, we will no longer support requests to our Legacy Maps and Legacy Static Images APIs from new applications and websites.

It also explains how to transition to the new Style.

This currently makes the Location Finder unusable in any new Shop.

ngolatka commented 4 years ago

Thanks for reporting this, @dwirt. Much appreciated!

This issue has been fixed in version 1.1.0, released just yesterday. The actual code changes are in these packages:

Please confirm it works for you and then close this issue.

emmathepossum commented 4 years ago

version 1.1.0 did indeed fix the issue, thank you very much