SuperKablamo / supermeeple-sk

SuperMeeple.com
http://supermeeple.com
2 stars 0 forks source link

Another Post API Issue #26

Closed sampyxis closed 13 years ago

sampyxis commented 13 years ago

Hey Will, When I did a few posts tonight I'm getting a 500 Internal Server Error -

The response back is that my name value is empty - but when I tested my string I have a name value in there.

Do you have a log where I can test what I sent against what actually got to you?

Response:

Traceback (most recent call last):
File"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 517, in call
handler.post(*groups)File "/base/data/home/apps/supermeeple-sk/1.349191564
002183358/api.py", line 43, in post
r = createCheckin(self)
File "/base/data/home/apps/supermeeple-sk/1.349191564002183358/api.py", line 225, in createCheckin
user_key =db.Key.from_path('User', fb_id)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 413, in from_path ValidateString(id_or_name, 'name')
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore_types.py", line 111, in ValidateString raise exception('%s must not be empty.' % name)
BadValueError: name must not be empty.

d6veteran commented 13 years ago

You should be able to view the logs on the love site. You have to make select to view severity info an above: https://appengine.google.com/logs?app_id=supermeeple-sk&version_id=1.349191564002183358&severity_level_override=0&severity_level=1&filter=&filter_type=regex&date_type=now&date=2011-03-25&time=22%3A56%3A29&limit=20#

Let me check the logs.

d6veteran commented 13 years ago

Can you post your url?

d6veteran commented 13 years ago

It doesn't look like you're sending a valid fb_id. Looking in the datastore, there are two Sam Harpers and the fb_ids are:

1 - 100001630241806 2 - 622875695

sampyxis commented 13 years ago

Ok - that gives me something to go on. Thanks Will.

I didn't change the post - but I totally changed the FB class.

BTW - I don't think I have access to the SuperMeeple app engine through my id (sampyxis@gmail.com)

d6veteran commented 13 years ago

Ah - you don't! I just added you.

sampyxis commented 13 years ago

Nice - just saw it and added myself.

Now - I won't have to bug you with stupid requests!

d6veteran commented 13 years ago

No worries. It was pretty easy for me to see what was happening. If you think you are sending a valid fb_id, then I will need to look closer.

sampyxis commented 13 years ago

Well, I'll double check the id - I think it's ok - I may have a wrong token though - I switched how I was accessing the FBAuth code - removed it from a UI handler to a class - this may have changed something.

I'm into the PullToRefresh deal - so I'll look back at this tomorrow.

It's getting pretty cleaned up

sampyxis commented 13 years ago

Nice Ok - thanks for that - I got it working again - stupid mistake

Now - I need the search working so I can checkin to something more interesting than Candy Land and Carcassonne!