majimboo/fb_createdate_approximator

HTTP Error 500

Opened this issue · 6 comments

On hitting the GET localhost:8080/fb/x, server returns 500 Error.
main.go: throws fbid not found error.

cookie.txt are set on the root folder. (folder as the same as webservice.exe)

Minimal, Reproducible Example

  1. Download & Unzip
  2. Create cookie.txt on the root folder
  3. Get cookie value from browser, and put it on cookie.txt
  4. Start webservice.exe
  5. Go to localhost:8080/fb/{x}
  6. Receive 500 Error

I'm guessing x is not the actual username you're trying to supply since it isn't a proper username (usernames must be at least 5 characters long). So it's probably a cookie issue.

The cookie.txt content must be like:

(redacted)

I'm guessing x is not the actual username you're trying to supply since it isn't a proper username

What I mean by x is the /:profile, and I supply a proper username to it. (example: kirk.niverba.9)

Would check further if this is a cookie issue.

EDIT: Not a cookie issue.

Tried playing around with Cookie by adding \r\n on cookie.txt, gave an invalid header field value error.

With proper cookie code and no invalid header field value error, still fbid error.

What I do, is I just highlight this part, copy it, paste it to the file, and save it. Nothing else.

(redacted)

Not including the cookie: part. Start highlighting from sb=...

image
That's exactly what I did.

I see, well I wrote this script in a hurry. It's very minimal. Might be account specific issues. I have had feedback from a few people that tried and some had success the first time, others had cookie issues but was ultimately successful in getting the create year after awhile.