PyPump icon indicating copy to clipboard operation
PyPump copied to clipboard

[ Key Error: 'activity inbox' ] after python line: [ print pump.me.inbox ] with mediagoblin webfinger

Open dylanjeffers opened this issue 10 years ago • 7 comments

after verifying mediagoblin account in both pypump-shell and manually via command line, above error occurs when trying to access user's inbox. Note the line [print pump.me] does not return an error.


KeyError Traceback (most recent call last) /home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump-shell in () ----> 1 print pump.me.inbox

/home/user/Documents/2015_summer/MediaGoblin/PyPump/pypump/models/person.pyc in inbox(self) 148 if not self.isme: 149 raise PyPumpException("You can't read other people's inboxes") --> 150 self._inbox = self._inbox or Inbox(self.links['activity-inbox'], pypump=self._pump) 151 return self._inbox 152

KeyError: 'activity-inbox'

In [2]: print pump.me SapienTech

dylanjeffers avatar Jun 11 '15 20:06 dylanjeffers

Can you post output of pump.me.published and pump.me.links ?

kabniel avatar Jun 11 '15 21:06 kabniel

In [1]: print pump.me.published None

In [2]: print pump.me.links {'self': 'https://goblin-jeffers.pagekite.me/api/user/SapienTech/profile'}

dylanjeffers avatar Jun 11 '15 21:06 dylanjeffers

[1] tells me that PyPump fails to load the user profile from server

if you run $ pypump-shell [email protected] --log=debug then pump.me

you'll probably see DEBUG:requests.packages.urllib3.connectionpool:"GET /api/user/SapienTech/profile HTTP/1.1" 400 38 on the last row, not sure why you get a http error 400 though..

kabniel avatar Jun 11 '15 21:06 kabniel

yes I am getting that. I set up mediagoblin following the instructions on https://wiki.mediagoblin.org/HackingHowto and am currently running the server with $ ./bin/paster serve paste.ini --reload and $ CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery ./bin/celeryd Should I instead follow the instructions on http://mediagoblin.readthedocs.org/en/stable/ ?

dylanjeffers avatar Jun 11 '15 23:06 dylanjeffers

I think the problem might be that you have some upper case letters in your user name, and we are not handling it properly. It would be helpful if you could try to register another user with only lower case letters in the name, and see if you get the same error with that user in pypump.

kabniel avatar Jun 17 '15 18:06 kabniel

@SapienTech any update on this?

moggers87 avatar Nov 27 '15 18:11 moggers87

@moggers87 sorry for the delay on this! will get back to you in the coming days

dylanjeffers avatar Jul 16 '16 19:07 dylanjeffers