Delcampe API not working

  • philaxia
    Account geschlossen
    PRO free

    32 Beiträge

    Italien

    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 Beiträge

    Deutschland

    i get 301 status
  • ansichtskartenpool

    35 Beiträge

    Deutschland

    i get 301 status
    • Erstellt am 21.10.2019 um 10:45
    • #1052668
    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
    Administrator

    348 Beiträge

    Belgien

    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
    • Erstellt am 21.10.2019 um 10:43
    • #1052662
    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
    Administrator

    348 Beiträge

    Belgien

    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:
    • Erstellt am 21.10.2019 um 10:56
    • #1052674
    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
    Account geschlossen
    PRO free

    32 Beiträge

    Italien

    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
    Administrator

    348 Beiträge

    Belgien

    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
    • Erstellt am 22.10.2019 um 06:02
    • #1053109
    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

Werden Sie Mitglied der Sammler-Community!

Anmelden Einloggen