chemokita13 / beReal-api

A not official BeReal rest API in wich you can get all posts info, comment, upload a post...
https://berealapi.fly.dev
78 stars 5 forks source link

internal server error on `/post/comment` #17

Closed AaditT closed 9 months ago

AaditT commented 11 months ago

Hey, I am trying to hit the /post/comment endpoint with valid token, postId, and comment. I keep getting 500 internal server error.

chemokita13 commented 11 months ago

Het, that seems like Bereal have changed the endpoint, i will work on it!

basti394 commented 10 months ago

Is this issue fixed already?

chemokita13 commented 10 months ago

Ey! @basti394 I think its already solved! You can try it!

basti394 commented 10 months ago

@chemokita13 thanks for the response, but unfortunately I still get a 500 exception. As a request Body I have my userId, the post Id and the message.

chemokita13 commented 10 months ago

@chemokita13 thanks for the response, but unfortunately I still get a 500 exception. As a request Body I have my userId, the post Id and the message.

Are you correct sending the params and the login token? Could you share a screenshot for seeing how do you make the request?

basti394 commented 10 months ago

Screenshot 2024-01-24 at 20 10 01

The token should correctly be attached, because every other endpoint works.

chemokita13 commented 10 months ago

Are you sending your own userId or the user's post id?

basti394 commented 10 months ago

I send my own user Id. Should I send the other one?

chemokita13 commented 10 months ago

Yes, I mean, if I want to comment on my @friend post, I have to send my @friend userId and the postId of my @friend. Also If you wanna comment in your own post the userId will be your userId

basti394 commented 10 months ago

Ahhh, okay thanks 👍 Btw I guess it would be better to then also return another code than 500, something more like 400

chemokita13 commented 10 months ago

Yeah, it's pending to change and improve all the server responses but its too large and idk when I will be able to solve it hahaha