LyoSU / quote-api

telegram quote api
132 stars 135 forks source link

Request failed with status code 500 #35

Closed AliAryanTech closed 7 months ago

AliAryanTech commented 1 year ago

You recently update your API, mostly time's this error occurred Request failed with status code 500 even that request is same as usual didn't change a bit, but still sometimes that error Occurred.

I already checked both json!

{"type":"quote","format":"png","backgroundColor":"#FFFFFF","width":512,"height":768,"scale":2,"messages":[{"entities":[],"avatar":true,"from":{"id":1,"name":"deey","photo":{"url":"https://upload.wikimedia.org/wikipedia/commons/a/ac/Default_pfp.jpg"}},"text":"Hmmm","replyMessage":{}}]}

response: Request failed with status code 500

{"type":"quote","format":"png","backgroundColor":"#FFFFFF","width":512,"height":768,"scale":2,"messages":[{"entities":[],"avatar":true,"from":{"id":1,"name":"Alι_Aryαɴ","photo":{"url":"https://telegra.ph/file/e991bb4b535a0f1425aa0.jpg"}},"text":"Hello","replyMessage":{}}]}

response: "successful"

Pretty weird, sometimes that error Occurred. else both works

LyoSU commented 1 year ago

Have you found a solution to the problem? I was going to watch later

AliAryanTech commented 1 year ago

Have you found a solution to the problem? I was going to watch later

Nope, that error Occurred again and again, I thought this project is longer in maintenances, that's why I closed.

LyoSU commented 1 year ago

I thought this project is longer in maintenances

I am working on this project in my free time. As there is a desire, I look at the problems that have accumulated and solve them

LyoSU commented 1 year ago

In any case, if you have the opportunity, you can send a PR with the correction of this problem.

AliAryanTech commented 1 year ago

In any case, if you have the opportunity, you can send a PR with the correction of this problem.

Ok, got it btw, don't you think your project should have some examples code for help?? Coz, first time I was also literally getting errors, that's the reason I messaged you on telegram.

Nevermind, you can see the request code - Here

LyoSU commented 1 year ago

examples code for help

Thought about it. But then again, I have a lot of other work to do. I can't do everything. But you can use the example in my bot that uses this apii: https://github.com/LyoSU/quote-bot

AliAryanTech commented 1 year ago

examples code for help

Thought about it. But then again, I have a lot of other work to do. I can't do everything. But you can use the example in my bot that uses this apii: https://github.com/LyoSU/quote-bot

In bot?? Why not API repo coz, user want to know how to make request on this API

LyoSU commented 1 year ago

Why not API repo

Because I don't have time. If you have it, you can help and make documentation. And I think it is necessary for a small number of people.

AliAryanTech commented 1 year ago

Well, it been a while since that error Occurred has been stopped. I guess it's because of package update you made. - Here