Closed philschatz closed 4 months ago
Slack's API does not work with newer node:
2024-06-13T16:55:52.522015+00:00 heroku[web.1]: State changed from starting to up
2024-06-13T16:55:52.266913+00:00 app[web.1]: {"level":10,"time":1718297752266,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"probot","name":"slack","msg":"Slack connecting..."}
2024-06-13T16:55:52.315595+00:00 app[web.1]: {"level":30,"time":1718297752315,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"server","msg":"Running Probot v12.4.0 (Node.js: v20.14.0)"}
2024-06-13T16:55:52.391512+00:00 app[web.1]: {"level":30,"time":1718297752391,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"server","msg":"Forwarding https://smee.io/vWPCFjV1F0rIVieR to http://localhost:34899/"}
2024-06-13T16:55:52.391562+00:00 app[web.1]: {"level":30,"time":1718297752391,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"server","msg":"Listening on http://localhost:34899"}
2024-06-13T16:55:52.446993+00:00 app[web.1]: {"level":30,"time":1718297752446,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"probot","name":"slack","msg":"Authenticated"}
2024-06-13T16:55:52.447177+00:00 app[web.1]: {"level":20,"time":1718297752446,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"probot","name":"slack","ok":true,"url":"wss://wss-primary.slack.com/websocket/LEGACY_BOT:82acce7220aa1362178cb3cde7bc1ed7","team":{"id":"T0F5B5PGQ","name":"openstax","domain":"openstax"},"self":{"id":"U9PDVBLKE","name":"staxly-dev"},"response_metadata":{"scopes":["identify","read","post","client","apps"],"acceptedScopes":["rtm:stream","client"]}}
2024-06-13T16:55:52.481427+00:00 app[web.1]: {"level":10,"time":1718297752481,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"probot","name":"slack","msg":"Slack connected"}
2024-06-13T16:55:52.525560+00:00 app[web.1]: {"level":30,"time":1718297752525,"pid":28,"hostname":"ed3b34ed-25be-4531-bab1-ddd3cf54eaff","name":"probot","name":"server","msg":"Connected"}
2024-06-13T16:55:58.492705+00:00 app[web.1]: TypeError: Cannot read properties of null (reading 'message')
2024-06-13T16:55:58.492788+00:00 app[web.1]: at /app/node_modules/@slack/rtm-api/dist/RTMClient.js:377:89
2024-06-13T16:55:58.492789+00:00 app[web.1]: at afterWrite (node:internal/streams/writable:701:5)
2024-06-13T16:55:58.492789+00:00 app[web.1]: at onwrite (node:internal/streams/writable:679:7)
2024-06-13T16:55:58.492790+00:00 app[web.1]: at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:107:10)
2024-06-13T16:56:00.515550+00:00 app[web.1]: npm notice
2024-06-13T16:56:00.515627+00:00 app[web.1]: npm notice New minor version of npm available! 10.7.0 -> 10.8.1
2024-06-13T16:56:00.515628+00:00 app[web.1]: npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
2024-06-13T16:56:00.515629+00:00 app[web.1]: npm notice To update run: npm install -g npm@10.8.1
2024-06-13T16:56:00.515629+00:00 app[web.1]: npm notice
2024-06-13T16:56:00.569336+00:00 heroku[web.1]: Process exited with status 1
2024-06-13T16:56:00.597376+00:00 heroku[web.1]: State changed from up to crashed
It's been a while since we upgraded node and the production version of staxly keeps crashing though the dev version seems to be up and running. This is part of a test to get staxly running again.
Logs: