Delcampe API not working

  • philaxia

    32 messaggi

    Italia

    Starting from today at about 14:30 pm, the Delcampe API is no more working.

    I have some scripts that close the delcampe items. But when the scripts tries to use the token and close the item I receive the following error:

    !! Traceback (most recent call last):
    !! File "/var/task/DelcampeListingCloser.py", line 112, in lambda_handler
    token = get_delcampe_token(api_key)
    !! File "/var/task/DelcampeListingCloser.py", line 73, in get_delcampe_token
    token = response_obj.Delcampe_Notification.Notification_Data.body.token.cdata
    !! File "/var/task/untangle.py", line 83, in __getattr__
    "'%s' has no attribute '%s'" % (self._name, key)
    !! AttributeError: 'body' has no attribute 'token'

    Are you aware of this issue? Can you please fix it?

    Thanks
  • ansichtskartenpool

    35 messaggi

    Germania

    i get 301 status
  • ansichtskartenpool

    35 messaggi

    Germania

    i get 301 status
    I've just tested the "feature" that the API will only be available via https from January 1, 2020, is apparently already online. Because via https I get a response. I'll say big cinema. Once again a really big cinema!

    :fight2: :fight3:
  • @thomas
    Amministratore

    348 messaggi

    Belgio

    Starting from today at about 14:30 pm, the Delcampe API is no more working.

    I have some scripts that close the delcampe items. But when the scripts tries to use the token and close the item I receive the following error:

    !! Traceback (most recent call last):
    !! File "/var/task/DelcampeListingCloser.py", line 112, in lambda_handler
    token = get_delcampe_token(api_key)
    !! File "/var/task/DelcampeListingCloser.py", line 73, in get_delcampe_token
    token = response_obj.Delcampe_Notification.Notification_Data.body.token.cdata
    !! File "/var/task/untangle.py", line 83, in __getattr__
    "'%s' has no attribute '%s'" % (self._name, key)
    !! AttributeError: 'body' has no attribute 'token'

    Are you aware of this issue? Can you please fix it?

    Thanks
    Hello philaxia,

    Do you still encounter the problem? I just tried on my side and everything worked well.
    Can you provide more details ?

    Thanks in advance,
    --
    Thomas
    Delcampe Team
  • @thomas
    Amministratore

    348 messaggi

    Belgio

    I've just tested the "feature" that the API will only be available via https from January 1, 2020, is apparently already online. Because via https I get a response. I'll say big cinema. Once again a really big cinema!

    :fight2: :fight3:
    Hello ansichtskartenpool,

    There was actually a problem redirecting from http to https. It is now corrected.
    I take this opportunity to remind you that you can now safely switch to the https protocol.

    We are sorry for this inconvenience,
    --
    Thomas
    Delcampe Team
  • philaxia

    32 messaggi

    Italia

    The last sale happened at 10.32 today and it was still not working.

    I followed the suggestion of ansichtskartenpool, who I thank very very much. I had another script which was no more working: I just replaced Link (http) with Link (https) and it started working.

    So I think the problem is we have to change http by https on all our scripts.

    Can you confirm that, if we change it now, we will not need to revert back to http until your deadline of 1st january 2020?

    Thanks
  • @thomas
    Amministratore

    348 messaggi

    Belgio

    The last sale happened at 10.32 today and it was still not working.

    I followed the suggestion of ansichtskartenpool, who I thank very very much. I had another script which was no more working: I just replaced Link (http) with Link (https) and it started working.

    So I think the problem is we have to change http by https on all our scripts.

    Can you confirm that, if we change it now, we will not need to revert back to http until your deadline of 1st january 2020?

    Thanks
    As said in the documentation, you can use the https protocol from now. Because from 1 January 2020 the http protocol will no longer be available.

    So I can confirm that you will not need to revert to the http protocol.

    Does everything work properly since you switched to https?

    Best Regards,
    --
    Thomas
    Delcampe Team

Unisciti alla community di collezionisti!

Registrati Login