You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when I give an invalid password at the prompt after doing a git pull using the gogs clone address:
It does not happen when I don't give a password.
No password, output is good:
remote: Missing or invalid authorization header.
remote:
remote: This address serves APIs, which allow external apps (such as a phone app) to
remote: access data on your Sandstorm server. This address is not meant to be opened
remote: in a regular browser.
fatal: Authentication failed for 'https://123456@api-123.hostname.example/user/repo.git/'
Incorrect password, returns stack trace and a 500 status code
remote: ERROR: The server threw an exception. Details:
remote:
remote: (remote):0: failed: remote exception: remote exception: Error: Invalid authorization token [403]
remote: at validateWebkey (imports/server/gateway-router.js:134:11)
remote: at imports/server/gateway-router.js:409:7
remote: at imports/server/async-helpers.ts:24:17
remote: at imports/server/async-helpers.ts:12:3
remote: at runWithEnvironment (packages/meteor.js:1286:24)
remote: at packages/meteor.js:1299:14
remote: at imports/server/async-helpers.ts:22:5
remote: at new Promise (<anonymous>)
remote: at inMeteor (imports/server/async-helpers.ts:21:10)
remote: at GatewayRouterImpl.openApiSession (imports/server/gateway-router.js:403:12)
remote: at /node_modules/capnp.js:174:21
remote: at /programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
remote: stack: XXXX XXXX
fatal: unable to access 'https://123456@api-123.hostname.example/user/repo.git/': The requested URL returned error: 500
The text was updated successfully, but these errors were encountered:
Instead of throwing an exception when given an invalid token, we return
an implementation of WebSession/ApiSession that responds to requests
with an error code.
zenhack
added a commit
to zenhack/sandstorm
that referenced
this issue
Dec 25, 2020
Instead of throwing an exception when given an invalid token, we return
an implementation of WebSession/ApiSession that responds to requests
with an error code.
This happens when I give an invalid password at the prompt after doing a
git pull
using the gogs clone address:It does not happen when I don't give a password.
No password, output is good:
Incorrect password, returns stack trace and a 500 status code
The text was updated successfully, but these errors were encountered: