redpanda-data / redpanda-data/console
ListMessages API Call Fails On Firefox
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 432
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 40
Description
Version: Redpanda Console v2.7.2
The ListMessages API call when viewing messages in a topic fails, but only on Firefox. Not having any issues utilizing Google Chrome. Sometimes the response is a 302, other times the request fails with an NS_BINDING_FAILED.
I've been able to narrow it down to the User-Agent being set as connect-es/1.1.2. When editing the request and using a User-Agent of Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0, as is used on all other requests by my browser to the Redpanda Console, the request resolves as expected. Something is happening, only on Firefox, making it so the user agent is adjusted for only this request.
I believe that this relates to the @connectrpc/connect module: https://github.com/connectrpc/connect-es/blob/134f9ca0ca3cea7973182f4ea071e2d0a1a9c6dc/packages/connect/scripts/update-user-agent.mjs#L38
Screenshot of a working request on the same topic view:
Screenshot of the ListMessages failed request. NOTE: User-Agent value in the bottom right:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Firefox failure while viewing topic messages and inspect the ListMessages request, comparing it with the working Chrome request. Read the referenced @connectrpc/connect user-agent update script and trace how that module is used by Redpanda Console; done means ListMessages succeeds in Firefox without regressing the other browser requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100