Skip to content

Instantly share code, notes, and snippets.

@davidpmccormick
Created April 28, 2022 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpmccormick/5dde2f821291646a6401118099d27610 to your computer and use it in GitHub Desktop.
Save davidpmccormick/5dde2f821291646a6401118099d27610 to your computer and use it in GitHub Desktop.
Auth0 redirect with action error
{
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.24.0',
'Content-Length': 811
},
method: 'post',
url: 'https://dev-uiqlu2cx.us.auth0.com/continue',
data: '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTExMzYwMDAsImlzcyI6Imh0dHBzOi8vZGV2LXVpcWx1MmN4LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiI4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eiIsImV4cCI6MTY1MTEzNjkwMCwiaXAiOiI4MS4xMTAuMjI5LjE1NyIsImF1ZCI6Imh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9hY2NvdW50L3JlZ2lzdHJhdGlvbiIsInN0YXRlIjoiaEtGbzJTQXdkVGhNTTFSdGRtaEJNQzFMTjBoc1dWZGZVR1JaTUV4VmQwMTRVbDlaVWFGdXFISmxaR2x5WldOMG8zUnBaTmtnTFdGRlJqZDJaemhuZVVGbmJuWm1TWFp1U21WRWFWOTFRaTFmZUZCdFpuaWpZMmxrMlNBNFQzSktObWxCV0dsemQxUlhTM1kzYW5SclJtVkVaMk5QY0ZOblZuaDRlZyIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy90ZXJtc19hZ3JlZWQiOiJ0cnVlIiwiaHR0cHM6Ly93ZWxsY29tZWNvbGxlY3Rpb24ub3JnL2ZpcnN0X25hbWUiOiJEYXZpZCIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9sYXN0X25hbWUiOiJNY0Nvcm1pY2sifQ.kPmfnVy4Oet9KvZX4uPcnq1ucUQVfCr1l2gJyXSAPDw"}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'dev-uiqlu2cx.us.auth0.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'dev-uiqlu2cx.us.auth0.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 37688,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /continue HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 811\r\n' +
'Host: dev-uiqlu2cx.us.auth0.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/continue',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Array],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: true,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://dev-uiqlu2cx.us.auth0.com/continue',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'dev-uiqlu2cx.us.auth0.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 811,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://dev-uiqlu2cx.us.auth0.com/continue',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
date: 'Thu, 28 Apr 2022 08:56:07 GMT',
'content-type': 'text/html; charset=utf-8',
'content-length': '2376',
connection: 'close',
'cf-ray': '702e9536c830d224-MAN',
'cache-control': 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, no-transform',
etag: 'W/"948-YReMdHT05xaw4BAKqKLbV7auXNg"',
'set-cookie': [Array],
'strict-transport-security': 'max-age=31536000',
'cf-cache-status': 'DYNAMIC',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'ot-baggage-auth0-request-id': '702e9536c830d224',
'ot-tracer-sampled': 'true',
'ot-tracer-spanid': '10fc3d037c3aeb14',
'ot-tracer-traceid': '74c250381a6b52d9',
traceparent: '00-10fc3d037c3aeb14-000000000000000074c250381a6b52d9-01',
tracestate: 'auth0-request-id=702e9536c830d224',
'x-auth0-requestid': 'a69a4a3f223f06b8d3f0',
'x-content-type-options': 'nosniff',
'x-ratelimit-limit': '300',
'x-ratelimit-remaining': '299',
'x-ratelimit-reset': '1651136168',
server: 'cloudflare',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
url: 'https://dev-uiqlu2cx.us.auth0.com/continue',
data: '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTExMzYwMDAsImlzcyI6Imh0dHBzOi8vZGV2LXVpcWx1MmN4LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiI4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eiIsImV4cCI6MTY1MTEzNjkwMCwiaXAiOiI4MS4xMTAuMjI5LjE1NyIsImF1ZCI6Imh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9hY2NvdW50L3JlZ2lzdHJhdGlvbiIsInN0YXRlIjoiaEtGbzJTQXdkVGhNTTFSdGRtaEJNQzFMTjBoc1dWZGZVR1JaTUV4VmQwMTRVbDlaVWFGdXFISmxaR2x5WldOMG8zUnBaTmtnTFdGRlJqZDJaemhuZVVGbmJuWm1TWFp1U21WRWFWOTFRaTFmZUZCdFpuaWpZMmxrMlNBNFQzSktObWxCV0dsemQxUlhTM1kzYW5SclJtVkVaMk5QY0ZOblZuaDRlZyIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy90ZXJtc19hZ3JlZWQiOiJ0cnVlIiwiaHR0cHM6Ly93ZWxsY29tZWNvbGxlY3Rpb24ub3JnL2ZpcnN0X25hbWUiOiJEYXZpZCIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9sYXN0X25hbWUiOiJNY0Nvcm1pY2sifQ.kPmfnVy4Oet9KvZX4uPcnq1ucUQVfCr1l2gJyXSAPDw"}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
_header: 'POST /continue HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 811\r\n' +
'Host: dev-uiqlu2cx.us.auth0.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/continue',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'dev-uiqlu2cx.us.auth0.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: '<html>\n' +
' <head>\n' +
' <meta charset="utf-8">\n' +
' <link href="https://cdn.auth0.com/styleguide/latest/index.min.css" rel="stylesheet" />\n' +
' <link rel="stylesheet" href="https://cdn.auth0.com/backend-templates/main.css">\n' +
' <meta name="viewport" content="width=device-width, initial-scale=1">\n' +
' <title>Sandbox Wellcome</title>\n' +
' </head>\n' +
' <body>\n' +
' <div class="unhandled-error-cont tenant-error-cont ">\n' +
' <div class="error-header">\n' +
' <span class="error-icon">\n' +
' \n' +
' <span class="error-face">\n' +
' <span class="error-face-eye left-eye eye-blink"></span>\n' +
' <span class="error-face-eye right-eye eye-blink"></span>\n' +
' <span class="error-mouth"></span>\n' +
' </span>\n' +
' \n' +
' </span>\n' +
' <h3 class="error-title">Sandbox Wellcome</h3>\n' +
' \n' +
' <h3 class="error-subtitle">Oops!, something went wrong</h3>\n' +
' \n' +
' </div>\n' +
' <div class="error-body">\n' +
' <p class="error-message">\n' +
' \n' +
' There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us.<br/>Please try again.\n' +
' \n' +
' </p>\n' +
' </div>\n' +
' <div class="error-footer">\n' +
' <div class="footer-groups cf">\n' +
' <span class="footer-group">\n' +
' <i class="footer-group-icon read-docs"></i>\n' +
' <h4 class="footer-group-title">TECHNICAL DETAILS</h4>\n' +
' <a href="#" class="toggle-details">See details for this error</a>\n' +
' </span>\n' +
' <span class="footer-group">\n' +
' <h4 class="footer-group-title">SUPPORT</h4>\n' +
' \n' +
' <p class="footer-group-detail">Please contact the systems administrator.</p>\n' +
' \n' +
' </span>\n' +
' </div>\n' +
' <div class="error-details">\n' +
' <p class="error-status">\n' +
' \n' +
' Unable to process redirect callback. This is often caused by calling the /continue endpoint without specifying the state parameter.\n' +
' \n' +
' </p>\n' +
' \n' +
'\n' +
' \n' +
' <span class="error-id">\n' +
' <span class="error-id-title">TRACKING ID: </span><span class="error-id-content">a69a4a3f223f06b8d3f0</span>\n' +
' </span>\n' +
' \n' +
' </div>\n' +
' </div>\n' +
' </div>\n' +
' <script src="https://cdn.auth0.com/backend-templates/main.js?v=1"></script>\n' +
' </body>\n' +
'</html>\n'
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment