mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
364 stars 180 forks source link

When retrieving the location: There was an error reaching the server / 检索位置时候出现:There was an errorreaching the server错误 #503

Open GBY-1 opened 1 year ago

GBY-1 commented 1 year ago

After I packaged and deployed the project, the location search function appeared: There was an error reaching the server error. I checked the network request and found that no token was carried, but I added it directly using MapboxGeocoder. How should I solve this situation? 我在项目打包部署后,地理位置搜索功能时出现:There was an errorreaching the server错误,我查看了网络请求,发现没有携带token,但是我是使用MapboxGeocoder直接添加的,这种情况应该怎么解决? Method to realize/实现方式: image

error page: image

network: image