pyfacebook icon indicating copy to clipboard operation
pyfacebook copied to clipboard

error on check_session when "expires" param is "None"

Open tswicegood opened this issue 15 years ago • 10 comments

Just ran into an issue where my various FB cookies were set to have an "expires" value of "None". This causes an issue in check_session() which assumes it's going to get something that can be run through int().

The exception message is: invalid literal for int() with base 10: 'None' and it's being thrown from line 1293 of facebook/__init__.py.

tswicegood avatar Jan 08 '10 18:01 tswicegood

I've had to work around this in d51.django.auth. You can see a test case in this commit.

tswicegood avatar Jan 08 '10 18:01 tswicegood

Also having this problem

DrMeers avatar Jan 12 '10 09:01 DrMeers

I just realized I have made a duplicate of this here http://github.com/sciyoshi/pyfacebook/issues#issue/30

But this also contains a solution if anyone else is interested.

Lynges avatar Jan 30 '10 13:01 Lynges

this is a huge issue imo and should be fixed asap

samhsiung avatar Feb 02 '10 21:02 samhsiung

also got this issue...

ikuta avatar Feb 09 '10 00:02 ikuta

I have this problem as well

jiaaro avatar Mar 29 '10 13:03 jiaaro

I'm also having this issue, is there a way to get around this..

RockyRx avatar Apr 16 '10 05:04 RockyRx

I have this problem as well. Anybody found solution yet? It'd be greatly appreciated.

Khutsafalo avatar Jun 30 '10 10:06 Khutsafalo

Having the same issue here. There seems to be a simple fix. I'll submit a pull request for it in a minute.

kennethlove avatar Sep 11 '10 00:09 kennethlove

same problem here... :(

JacopoOttaviani avatar Sep 16 '10 10:09 JacopoOttaviani