BUG: Percent Encoding decoding for workers URL breaks major features

For Workers & Pages, what is the name of the domain?

hermes.yuannan.workers.dev

What is the error number?

500

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.

Does anyone know anything I can try? This bug is still here :confused:

With Worker problems, you’ll have generally have more luck on the Cloudflare Developer Discord, where (obviously) most people are actively using Workers. Many Cloudflare staff also actively monitor there for problems.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.