What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
Homepage app widget stopped working after upgrade to v26.2.6, with error:
error: <credentialedProxyHandler> HTTP Error 403 calling https://netalertx.example.com/server/devices/totals
Backend API URL is set to https://netalertx.example.com/server
Tried:
curl 'https://netalertx.example.com/server/devices/totals' -H 'Authorization: Bearer MYTOKEN'
and got:
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
Also:
curl 'http://127.0.0.1:20212/devices' -H 'Authorization: Bearer MYTOKEN'
does not work, returns:
{"error":"Forbidden","message":"ERROR: Not authorized","success":false}
What is working:
curl 'http://127.0.0.1:20212/graphql' \
-X POST \
-H 'Authorization: Bearer MYTOKEN' \
-H 'Content-Type: application/json' \
--data '{
"query": "query GetDevices($options: PageQueryOptionsInput) { devices(options: $options) { devices { rowid devMac devName devOwner devType devVendor devLastConnection devStatus } count } }",
"variables": {
"options": {
"page": 1,
"limit": 10,
"sort": [{ "field": "devName", "order": "asc" }],
"search": "",
"status": "connected"
}
}
}'
So I know my token is ok.
Also /php/server/query_json.php?file=app_state.json works fine with the token,
Expected Behavior
APIs should work.
Steps To Reproduce
N/A
Relevant app.conf settings
docker-compose.yml
Debug or Trace enabled
Relevant app.log section
PASTE LOG HERE. Using the triple backticks preserves format.
Docker Logs
PASTE DOCKER LOG HERE. Using the triple backticks preserves format.
What installation are you running?
Production (netalertx) 📦
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
Homepage app widget stopped working after upgrade to v26.2.6, with error:
error: <credentialedProxyHandler> HTTP Error 403 calling https://netalertx.example.com/server/devices/totalsBackend API URL is set to https://netalertx.example.com/server
Tried:
curl 'https://netalertx.example.com/server/devices/totals' -H 'Authorization: Bearer MYTOKEN'and got:
Also:
curl 'http://127.0.0.1:20212/devices' -H 'Authorization: Bearer MYTOKEN'does not work, returns:
{"error":"Forbidden","message":"ERROR: Not authorized","success":false}What is working:
So I know my token is ok.
Also /php/server/query_json.php?file=app_state.json works fine with the token,
Expected Behavior
APIs should work.
Steps To Reproduce
N/A
Relevant
app.confsettingsdocker-compose.yml
N/ADebug or Trace enabled
Relevant
app.logsectionDocker Logs