BUG: Percent Encoding decoding for workers URL breaks major features
What is the error message?
API Request Failed: POST /api/v4/accounts/XXX/pages/connections/gitlab/EmergenceLTD/repos/Clients%2FAI_Now%2FHermes/webhooks/refresh (500)
What is the issue or error you’re encountering
Unable to use some features of workers as the wrong API URL is called
What steps have you taken to resolve the issue?
I’ve tried going to the gitlab page and check it exists.
I’m pretty sure it is because the percentage encoding and decoding algorithm here is broken.
The request should be going down to /EmergenceLTD/repos/Clients/AI_Now/Hermes/webhooks/refresh but instead the percetages are not decoded properly and it’s going down to /EmergenceLTD/repos/Clients%2FAI_Now%2FHermes/webhooks/refresh.
What are the steps to reproduce the issue?
Goto the Workers Settings page.
1. try and enable Builds for non-production branches, it will return this error: API Request Failed: POST /api/v4/accounts/XXX/pages/connections/gitlab/EmergenceLTD/repos/Clients%2FAI_Now%2FHermes/webhooks/refresh (500)
2. In Settings > Runtime > Manage: the URL goes to: https://gitlab.com/EmergenceLTD/Clients%2FAI_Now%2FHermes/-/hooks/ which also has the wrong decoding.
0 Replies