Generate Custom Client error #171

Open
opened 2025-12-19 14:38:33 +08:00 by 3guajardo · 3 comments
3guajardo commented 2025-12-19 14:38:33 +08:00 (Migrated from github.com)

What means this error in browser?

{"error": "Something went wrong"}

What means this error in browser? {"error": "Something went wrong"}
SuperXL2023 commented 2025-12-21 22:05:55 +08:00 (Migrated from github.com)

This error means that the Github response code is not 204.

I also had this error in browser until I changed in ./rdgenerator/views.py line number 247
if response.status_code == 204:
to
if response.status_code == 204 or response.status_code == 200:

After this change, everything worked fine for me.

This error means that the Github response code is not 204. I also had this error in browser until I changed in `./rdgenerator/views.py` line number **247** `if response.status_code == 204:` to `if response.status_code == 204 or response.status_code == 200:` After this change, everything worked fine for me.
857074609 commented 2025-12-25 19:34:45 +08:00 (Migrated from github.com)

This error means that the Github response code is not 204.

I also had this error in browser until I changed in ./rdgenerator/views.py line number 247 if response.status_code == 204: to if response.status_code == 204 or response.status_code == 200:

After this change, everything worked fine for me.

if 200 <= response.status_code < 300:

Image
> This error means that the Github response code is not 204. > > I also had this error in browser until I changed in `./rdgenerator/views.py` line number **247** `if response.status_code == 204:` to `if response.status_code == 204 or response.status_code == 200:` > > After this change, everything worked fine for me. if 200 <= response.status_code < 300: <img width="1535" height="449" alt="Image" src="https://github.com/user-attachments/assets/9c4c3537-614b-48a6-9e06-b4482efb9f84" />
SuperXL2023 commented 2025-12-25 19:59:43 +08:00 (Migrated from github.com)

if 200 <= response.status_code < 300:

Image

Thanks for the reply!
I looked at the source (./rdgenerator/views.py) in this repository, and in your public one, there's only line 247, which handles only the 204 response code.
Perhaps your private repository or your computer contains the version shown in the screenshot ;-) .

Regards, SuperXL.

> > if 200 <= response.status_code < 300: > > <img alt="Image" width="1535" height="449" src="https://private-user-images.githubusercontent.com/73793536/530198574-9c4c3537-614b-48a6-9e06-b4482efb9f84.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjY2NjQxMTAsIm5iZiI6MTc2NjY2MzgxMCwicGF0aCI6Ii83Mzc5MzUzNi81MzAxOTg1NzQtOWM0YzM1MzctNjE0Yi00OGE2LTllMDYtYjQ0ODJlZmI5Zjg0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEyMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMjI1VDExNTY1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzOGVjYTIxMmNkYjBmODJmNTlhYWEyMTIxZjM4NjhkYmY3NTE4ZDY3YzA3YTc0YzgwNmZiMmE0OWFmODY0NjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ITUKknpYdXWDTLUtpniqcNMvrJwBGR_pyWcRqoV5b_Q"> Thanks for the reply! I looked at the source (`./rdgenerator/views.py`) in this repository, and in your public one, there's only line 247, which handles only the 204 response code. Perhaps your private repository or your computer contains the version shown in the screenshot ;-) . Regards, SuperXL.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#171