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
79 stars 5 forks source link

internal server error on /post and /friends #28

Closed alpha-157 closed 10 months ago

alpha-157 commented 10 months ago

I guess BeReal just changed some endpoints as none of the "Friends" and "Post" GET functions work for me anymore. Yesterday everything still worked fine but starting today I keep getting 500 internal server error with my valid token. However login functions an ping server still work.

chemokita13 commented 10 months ago

Are you sure that token has not expired?

alpha-157 commented 10 months ago

Yes I am sure. I have just tested it again with a freshly send opt code to my smarthphone. I can verify that opt code and get a valid token. Refreshing this particular token works as well. Exectuting any of the GET functions also doesn't return "malformed jwt token" or "Token not generated" but: { "status": 500, "message": "Internal server error", "data": { "message": "Request failed with status code 403", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 403\n at settle (/app/node_modules/axios/dist/node/axios.cjs:1970:12)\n at BrotliDecompress.handleStreamEnd (/app/node_modules/axios/dist/node/axios.cjs:3069:11)\n at BrotliDecompress.emit (node:events:531:35)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, /", "Authorization": "Bearer ... (I have removed that part for privacy)", "User-Agent": "axios/1.6.5", "Accept-Encoding": "gzip, compress, deflate, br" }, "method": "get", "url": "https://mobile.bereal.com/api/feeds/friends-v1" }, "code": "ERR_BAD_REQUEST", "status": 403 } }

chemokita13 commented 10 months ago

I will work on it!

083noah commented 10 months ago

I will work on it!

Do you already know when you will be finished? I really need to see todays bereal, I think it expires tomorrow between 11 a.m. and 5 p.m

It would be WONDERFUL if you made it that far!!!

chemokita13 commented 10 months ago

I don't know, I am a student in an exams week and Im not sure when I am having time for coding

083noah commented 10 months ago

I don't know, I am a student in an exams week and Im not sure when I am having time for coding

oh okay, good luck! would be great if you can do it in next time! :)

chemokita13 commented 10 months ago

@083noah Solved!