You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "IvanHernanzC (via GitHub)" <gi...@apache.org> on 2023/06/21 14:34:37 UTC
[GitHub] [superset] IvanHernanzC opened a new issue, #24472: Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271
IvanHernanzC opened a new issue, #24472:
URL: https://github.com/apache/superset/issues/24472
When I am embedding a dashboard on my website, I see how it authenticates, it returns the token and when I go to call api/v1/security/guest_token it gives me the 405 error. In a system via http it works perfectly for me
#### How to reproduce the bug
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
### Expected results
what you expected to happen.
### Actual results
what actually happens.
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: firefox 114.01
- superset version: 0.0.0-dev` docker compose
- python version3.9.16
- node.js version: `node -v`
- any feature flags active:
FEATURE_FLAGS = {
'ENABLE_TEMPLATE_PROCESSING': True,
"EMBEDDED_SUPERSET": True
}
SESSION_COOKIE_SAMESITE = "None" # Sufficient for Firefox
SESSION_COOKIE_SECURE = True # Required for Google Chrome (at least from version 84)
SESSION_COOKIE_HTTPONLY = False
CSRF_ENABLED = False
WTF_CSRF_ENABLED = False
GUEST_ROLE_NAME = "Gamma"
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
Python log:
2023-06-21 16:05:50,313 [DEBUG] urllib3.connectionpool [connectionpool.py:connectionpool:_make_request:456]: https://xxxxxx.com:443 "POST /api/v1/security/guest_token HTTP/1.1" 308 289
2023-06-21 16:05:50,314 [DEBUG] urllib3.connectionpool [connectionpool.py:connectionpool:_new_conn:228]: Starting new HTTP connection (1): xxxxxx.com:80
2023-06-21 16:05:50,317 [DEBUG] urllib3.connectionpool [connectionpool.py:connectionpool:_make_request:456]: http://xxxxx.com:80 "POST /api/v1/security/guest_token/ HTTP/1.1" 301 169
2023-06-21 16:05:50,322 [DEBUG] urllib3.connectionpool [connectionpool.py:connectionpool:_make_request:456]: https://xxxx.com:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271
2023-06-21 16:05:50,325 [INFO] root [api.py:api:get:828]: {'errors': [{'message': '405 Method Not Allowed: The method is not allowed for the requested URL.', 'error_type': 'GENERIC_BACKEND_ERROR', 'level': 'error', 'extra': {'issue_codes': [{'code': 1011, 'message': 'Issue 1011 - Superset encountered an unexpected error.'}]}}]}
### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271 [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #24472: Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271
URL: https://github.com/apache/superset/issues/24472
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] IvanHernanzC commented on issue #24472: Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271
Posted by "IvanHernanzC (via GitHub)" <gi...@apache.org>.
IvanHernanzC commented on issue #24472:
URL: https://github.com/apache/superset/issues/24472#issuecomment-1601116207
From postman call: https:/xxxx.com/api/v1/security/guest_token/ with barear token ..
Return:
{
"errors": [
{
"message": "405 Method Not Allowed: The method is not allowed for the requested URL.",
"error_type": "GENERIC_BACKEND_ERROR",
"level": "error",
"extra": {
"issue_codes": [
{
"code": 1011,
"message": "Issue 1011 - Superset encountered an unexpected error."
}
]
}
}
]
}
And, the nginx configuration is:
server {
listen 443 ssl;
server_name xxxx.com;
ssl_certificate /etc/letsencrypt/live/kpis.kulteo.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kpis.kulteo.com/privkey.pem;
location / {
proxy_pass http://superset:8088;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] marchellodev commented on issue #24472: Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271
Posted by "marchellodev (via GitHub)" <gi...@apache.org>.
marchellodev commented on issue #24472:
URL: https://github.com/apache/superset/issues/24472#issuecomment-1719238334
What helped me was callling `https://domain.com/api/v1/security/guest_token/` instead of `https://domain.com/api/v1/security/guest_token`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error embebed dashboard https://xxx:443 "GET /api/v1/security/guest_token/ HTTP/1.1" 405 271 [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24472:
URL: https://github.com/apache/superset/issues/24472#issuecomment-1989575203
Hopefully, the answer above is sufficient to close this thread. I'll do so anyway since it's been so long since there was a comment here. If this needs revisiting/reopening, just say the word.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org