Skip to content

Instantly share code, notes, and snippets.

@HoffmannP
Created June 4, 2024 11:25
Show Gist options
  • Save HoffmannP/fdfeb2b6c1c7c936cff968552d66277f to your computer and use it in GitHub Desktop.
Save HoffmannP/fdfeb2b6c1c7c936cff968552d66277f to your computer and use it in GitHub Desktop.
[2024-06-04T11:21:39.048] [INFO] Transport.Transport - Transport initialized
RequestError: error.platform.unexpected (403): 'Received invalid error content from platform. Contact the platform team.' for POST /api/v1/Challenges at 2024-06-04T11:21:39.160Z
at RequestError.fromAxiosError (/usr/app/node_modules/@nmshd/transport/dist/core/backbone/RequestError.js:92:20)
at ChallengeClient.post (/usr/app/node_modules/@nmshd/transport/dist/core/backbone/RESTClient.js:256:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ChallengeClient.createChallenge (/usr/app/node_modules/@nmshd/transport/dist/modules/challenges/backbone/ChallengeClient.js:7:16)
at async ChallengeController.createAccountCreationChallenge (/usr/app/node_modules/@nmshd/transport/dist/modules/challenges/ChallengeController.js:72:35)
at async AccountController.createIdentityAndDevice (/usr/app/node_modules/@nmshd/transport/dist/modules/accounts/AccountController.js:209:33)
at async AccountController.init (/usr/app/node_modules/@nmshd/transport/dist/modules/accounts/AccountController.js:108:32)
at async ConnectorRuntime.initAccount (/usr/app/dist/ConnectorRuntime.js:126:34)
at async ConnectorRuntime.init (/usr/app/node_modules/@nmshd/runtime/dist/Runtime.js:75:9)
at async ConnectorRuntime.create (/usr/app/dist/ConnectorRuntime.js:85:9) {
code: 'error.platform.unexpected',
data: undefined,
method: 'POST',
path: '/api/v1/Challenges',
platformParameters: undefined,
reason: 'Received invalid error content from platform. Contact the platform team.',
requestId: 'HTTPtgT8Y4X5wRqJ9l7O',
status: 403,
time: '2024-06-04T11:21:39.160Z',
object: {
message: 'Request failed with status code 403',
name: 'AxiosError',
description: undefined,
number: undefined,
fileName: undefined,
lineNumber: undefined,
columnNumber: undefined,
stack: 'AxiosError: Request failed with status code 403\n' +
' at settle (/usr/app/node_modules/axios/dist/node/axios.cjs:1983:12)\n' +
' at IncomingMessage.handleStreamEnd (/usr/app/node_modules/axios/dist/node/axios.cjs:3085:11)\n' +
' at IncomingMessage.emit (node:events:532:35)\n' +
' at endReadableNT (node:internal/streams/readable:1696:12)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n' +
' at Axios.request (/usr/app/node_modules/axios/dist/node/axios.cjs:4224:41)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async ChallengeClient.post (/usr/app/node_modules/@nmshd/transport/dist/core/backbone/RESTClient.js:252:30)\n' +
' at async ChallengeClient.createChallenge (/usr/app/node_modules/@nmshd/transport/dist/modules/challenges/backbone/ChallengeClient.js:7:16)\n' +
' at async ChallengeController.createAccountCreationChallenge (/usr/app/node_modules/@nmshd/transport/dist/modules/challenges/ChallengeController.js:72:35)\n' +
' at async AccountController.createIdentityAndDevice (/usr/app/node_modules/@nmshd/transport/dist/modules/accounts/AccountController.js:209:33)\n' +
' at async AccountController.init (/usr/app/node_modules/@nmshd/transport/dist/modules/accounts/AccountController.js:108:32)\n' +
' at async ConnectorRuntime.initAccount (/usr/app/dist/ConnectorRuntime.js:126:34)\n' +
' at async ConnectorRuntime.init (/usr/app/node_modules/@nmshd/runtime/dist/Runtime.js:75:9)\n' +
' at async ConnectorRuntime.create (/usr/app/dist/ConnectorRuntime.js:85:9)',
config: {
transitional: [Object],
timeout: 60000,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
env: [Object],
headers: [Object [AxiosHeaders]],
baseURL: 'https://nmshd-bkb.demo.meinbildungsraum.de/',
maxRedirects: 10,
paramsSerializer: [Object],
proxy: false,
httpsAgent: [Object],
httpAgent: [Object],
params: {},
method: 'post',
url: '/api/v1/Challenges'
},
code: 'ERR_BAD_REQUEST',
status: 403
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment