mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #27] tool broken due to new version of Unifi Controller? #8
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aroundmyroom on GitHub (Oct 29, 2023).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/27
Network 8.0.2
version Unifi Controller
Web]: /images/bg-8.jpg
[Web]: /images/unifi-icon.png
[Web]: /dist/style.css
[Web]: /
[Web]: /voucher?code=XXXX&type=480,0,,,
Error while logging in!
AxiosError: Request failed with status code 401
at settle (/home/unifi-voucher-site/node_modules/axios/dist/node/axios.cjs:1268:12)
at IncomingMessage.handleStreamEnd (/home/unifi-voucher-site/node_modules/axios/dist/node/axios.cjs:2446:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ERR_BAD_REQUEST',
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,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: AxiosHeaders {
'Content-Type': 'application/json',
'User-Agent': 'axios/1.1.3',
'Content-Length': '63',
'Accept-Encoding': 'gzip, deflate, br',
[Symbol(defaults)]: [Object]
@glenndehaan commented on GitHub (Oct 29, 2023):
Version 8.0.2 is in early access. And libraries do not have support for version 8 at this moment. Therefore I will close this issue since I only aim to support stable versions
@aroundmyroom commented on GitHub (Nov 9, 2023):
issue was related to the node-unifi part. when the dependency is updated it will be fix (soon) .. I have updated my unifi.js and the tool is working again.