Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get .ics timetable #30

Closed
elijahzyx opened this issue Apr 30, 2024 · 12 comments
Closed

Can't get .ics timetable #30

elijahzyx opened this issue Apr 30, 2024 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@elijahzyx
Copy link

When I go to http://localhost:3000/lessons/96 I can view all the data, but when I try to get the ics from http://localhost:3000/lessons/96/ics I get this error:
{"statusCode":500,"message":"Internal server error"}

@bddvlpr
Copy link
Owner

bddvlpr commented Apr 30, 2024

Any output in the logs? Which version are you running?

@bddvlpr bddvlpr added bug Something isn't working question Further information is requested labels Apr 30, 2024
@elijahzyx
Copy link
Author

elijahzyx commented Apr 30, 2024

server-1  | [Nest] 1  - 04/30/2024, 2:25:15 PM    WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
server-1  | [Nest] 1  - 04/30/2024, 2:25:15 PM   ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'map')
server-1  | Error: Cannot read properties of undefined (reading 'map')
server-1  |     at Queue.onFailed (/app/node_modules/bull/lib/job.js:516:18)
server-1  |     at Queue.emit (node:events:518:28)
server-1  |     at module.exports.emitSafe (/app/node_modules/bull/lib/utils.js:50:20)
server-1  |     at EventEmitter.messageHandler (/app/node_modules/bull/lib/queue.js:476:15)
server-1  |     at EventEmitter.emit (node:events:518:28)
server-1  |     at DataHandler.handleSubscriberReply (/app/node_modules/ioredis/built/DataHandler.js:80:32)
server-1  |     at DataHandler.returnReply (/app/node_modules/ioredis/built/DataHandler.js:47:18)
server-1  |     at JavascriptRedisParser.returnReply (/app/node_modules/ioredis/built/DataHandler.js:21:22)
server-1  |     at JavascriptRedisParser.execute (/app/node_modules/redis-parser/lib/parser.js:544:14)
server-1  |     at Socket.<anonymous> (/app/node_modules/ioredis/built/DataHandler.js:25:20)

newest version of everything

@bddvlpr
Copy link
Owner

bddvlpr commented Apr 30, 2024

Will fix it in about an hour. :)

@elijahzyx
Copy link
Author

Alright, thank you very much :)

@bddvlpr
Copy link
Owner

bddvlpr commented Apr 30, 2024

Could you provide the output of the non /ics path so I can figure out which property is undef? You can also e-mail or send it through a private channel if required. Seems like the typings aren't correct (again)...

@elijahzyx
Copy link
Author

I have e-mailed it to you!

@bddvlpr bddvlpr removed the question Further information is requested label Apr 30, 2024
@bddvlpr
Copy link
Owner

bddvlpr commented Apr 30, 2024

Re-open if this doesn't fix it for you. Releasing a new tag and should build soon.

@elijahzyx
Copy link
Author

elijahzyx commented Apr 30, 2024

Sadly, I'm still getting the same error :/

{"statusCode":500,"message":"Internal server error"}

server-1  | [Nest] 1  - 04/30/2024, 6:06:10 PM     LOG [UntisService] Fetching timetable range 4/23/2024 to 5/14/2024...
server-1  | [Nest] 1  - 04/30/2024, 6:06:11 PM    WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
server-1  | [Nest] 1  - 04/30/2024, 6:06:11 PM   ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'map')
server-1  | Error: Cannot read properties of undefined (reading 'map')
server-1  |     at Queue.onFailed (/app/node_modules/bull/lib/job.js:516:18)
server-1  |     at Queue.emit (node:events:518:28)
server-1  |     at module.exports.emitSafe (/app/node_modules/bull/lib/utils.js:50:20)
server-1  |     at EventEmitter.messageHandler (/app/node_modules/bull/lib/queue.js:476:15)
server-1  |     at EventEmitter.emit (node:events:518:28)
server-1  |     at DataHandler.handleSubscriberReply (/app/node_modules/ioredis/built/DataHandler.js:80:32)
server-1  |     at DataHandler.returnReply (/app/node_modules/ioredis/built/DataHandler.js:47:18)
server-1  |     at JavascriptRedisParser.returnReply (/app/node_modules/ioredis/built/DataHandler.js:21:22)
server-1  |     at JavascriptRedisParser.execute (/app/node_modules/redis-parser/lib/parser.js:544:14)
server-1  |     at Socket.<anonymous> (/app/node_modules/ioredis/built/DataHandler.js:25:20)

@bddvlpr
Copy link
Owner

bddvlpr commented Apr 30, 2024

Are you sure you pulled the latest image? I'll look into replicating your issue tomorrow.

@bddvlpr bddvlpr reopened this Apr 30, 2024
@elijahzyx
Copy link
Author

Yeah pretty sure

@bddvlpr
Copy link
Owner

bddvlpr commented May 1, 2024

Tried running it locally with your data, seems to pass. Are you sure you pulled the new image?

@elijahzyx
Copy link
Author

Reinstalled on another pc, worked now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants