Comments (11)
Hi najtin ,
can you provide a screenshot of your browsers developer tools (Press F12, select Console and refresh the page)? This would help us in resolving this problem.
from opensensemap.
from opensensemap.
najtin, do you have any browser plugins installed which could cause this?
@felixerdy do you have an idea?
from opensensemap.
$ curl https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/2/1/0?access_token=pk.eyJ1Ijoic2Vuc2Vib3giLCJhIjoiY2p1Y2x6NXl1MG5wNDN6cGk1MGc2cGZhaSJ9.HRwU3DShLMEtj_UHYlqb8g {"message":"Forbidden"}
Tested it in two different networks
from opensensemap.
The mapbox access_token is equipped with an URL restriction. Only opensensemap.org can access tiles with this access_token
from opensensemap.
The mapbox access_token is equipped with an URL restriction. Only opensensemap.org can access tiles with this access_token
do you mean the client side opensensemap.org or the server?
from opensensemap.
najtin, do you have any browser plugins installed which could cause this?
yes uMatrix, but i lifted all restrictions for this domain
from opensensemap.
The mapbox access_token is equipped with an URL restriction. Only opensensemap.org can access tiles with this access_token
do you mean the client side opensensemap.org or the server?
Well client side I guess. Could you check again now? I just added api.mapbox.com
to the URL restriction list as stated in the mapbox docs: https://docs.mapbox.com/accounts/overview/tokens/#add-url-restrictions-to-access-tokens
from opensensemap.
Same result.
Here is the answer of one of the requests:
GEThttps://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/2/1/0?access_token=pk.eyJ1Ijoic2Vuc2Vib3giLCJhIjoiY2p1Y2x6NXl1MG5wNDN6cGk1MGc2cGZhaSJ9.HRwU3DShLMEtj_UHYlqb8g
[HTTP/1.1 403 Forbidden 648ms]
GET
https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/2/1/0?access_token=pk.eyJ1Ijoic2Vuc2Vib3giLCJhIjoiY2p1Y2x6NXl1MG5wNDN6cGk1MGc2cGZhaSJ9.HRwU3DShLMEtj_UHYlqb8g
Status403
Forbidden
VersionHTTP/1.1
Übertragen565 B (23 B Größe)
HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8
Content-Length: 23
Connection: keep-alive
Date: Fri, 23 Oct 2020 12:35:48 GMT
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
Cache-Control: no-cache
X-Content-Type-Options: nosniff
ETag: W/"17-bqIm6pxC4cx+ZoszvXxsClwgWw8"
X-Cache: Error from cloudfront
Via: 1.1 e9ece8a38ce6bb2b68b3b5a87615cfee.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: TLV50-C1
X-Amz-Cf-Id: JloSLTJD_U2axNTVflxtbMLUX8g8jASpinVwFm7KIv9wxXwS_twl7Q==
Accept
image/webp,*/*
Accept-Encoding
gzip, deflate, br
Accept-Language
de,en-US;q=0.7,en;q=0.3
Cache-Control
no-cache
Connection
keep-alive
DNT
1
Host
api.mapbox.com
Pragma
no-cache
Referer
https://api.mapbox.com/
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
from opensensemap.
Does X-Cache: Error from cloudfront
mean anything?
from opensensemap.
Going to close this issue.
The token is restricted to request coming form opensensemap.org
.
$ curl https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/2/1/0?access_token=pk.eyJ1Ijoic2Vuc2Vib3giLCJhIjoiY2p1Y2x6NXl1MG5wNDN6cGk1MGc2cGZhaSJ9.HRwU3DShLMEtj_UHYlqb8g {"message":"Forbidden"}
Tested it in two different networks
Having the same error if I am calling it directly in my browser.
Feel free to open this issue again if you are not seeing the tiles on opensensemap.org
.
If you are hosting an own instance or running it locally you have to provide your own Mapbox Access Token.
from opensensemap.
Related Issues (20)
- Can't update box HOT 4
- Show correct overview during the registration process
- Authentication Error when Uploading measurements from csv/json file to a secured box
- Documantation: Incorrectly header variable name for authentication HOT 1
- Interpolation: Missing UI Feedback/Suggestions on Available Phenomena HOT 3
- Website: Link to forum in FAQ section of website not working HOT 1
- Adding multiple sensors of one type to senseBox:home HOT 3
- Charts and axis are not updated after refreshing the interval
- Cayenne LPP config disappearing after sensor update HOT 1
- Feature: Ability to choose Date AND Time as Interval Borders. HOT 1
- Feature: Show Measurements of multiple Boxes in the same Chart HOT 1
- 🔎 Zooming in even further HOT 2
- Allow to compile ethernet sketches online
- Feature request: ability to change order of shown data HOT 1
- Humidity description doesnt show up. HOT 2
- Only German and English translations available HOT 2
- HTTP (port 80) site returns blank page HOT 1
- Configuration/Setup Dialogue to choose ports doesn't indicate which port has which letter/number HOT 1
- Sensors not updated when data is sent in multiple payloads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensensemap.