btlqql opened a new issue, #428:
URL: https://github.com/apache/rocketmq-dashboard/issues/428

   ## Confirmed defect
   
   RocketMQ Studio's backend wraps successful responses with `Result.ok(...)`, 
which sets the business code to `200`. The frontend Axios response interceptor 
accepted only business code `0`, so a valid HTTP 200 response containing `{ 
"code": 200, "message": "success" }` was converted into a rejected promise and 
displayed as an error when real API mode was used.
   
   ## Delivered fix
   
   The complete fix is implemented in 
[`btlqql:agent/studio-api-response-contract`](https://github.com/btlqql/rocketmq-dashboard/tree/agent/studio-api-response-contract)
 at commit 
[`cf41b7c`](https://github.com/btlqql/rocketmq-dashboard/commit/cf41b7c):
   
   - accepts the backend's documented `200` success code;
   - preserves compatibility with the previously accepted `0` success code;
   - passes through non-envelope responses;
   - continues rejecting non-success business codes with the backend message;
   - retains Bearer token injection;
   - adds six automated regression tests for the shared API client contract.
   
   ## Verification completed
   
   - `npm ci --ignore-scripts --no-audit --no-fund`
   - `npm test` — 6 tests passed
   - `npm run lint` — 0 errors (3 pre-existing warnings)
   - `npm run build` — production build succeeded
   
   This is a Track 1 frontend reliability fix associated with the RocketMQ 
Studio contribution program in apache/rocketmq#10600.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to