500 error when querying for Customer info through api endpoint

artgrphartgrph Posts: 10Partner partner
edited February 2018 in Development
Am seeing this error all day starting today, I was wondering if you guys knew when this would be fixed? Here is the error:

{"httpCode":"500","httpMessage":"Internal Server
Error","message":"Call to a member function isSystem() on boolean"}

Here is the query to lightspeed:

merchant_id/Customer?load_relations=all&firstName=test&lastName=customer

5 comments

  • artgrphartgrph Posts: 10Partner partner
    Hi guys, this is really important for us, can someone look into this? Thanks
  • DotCommerceDotCommerce Posts: 6Member, Partner partner
    edited February 2018
    You might want to send an email to [email protected], they'll usually respond quickly.
    Post edited by jamesratcliffe on
    DotCommerce B.V.
    Lightspeed Elite partner
    Phone: +31 (0)85 - 300 1114
    Email: [email protected]
  • artgrphartgrph Posts: 10Partner partner
    Thank you! I wish one of these admins would have said something...
  • Michael CareyMichael Carey Posts: 68Administrator, Lightspeed Staff moderator
    Hello,

    Sorry for the delayed response. We didn't see this post right away because it was posted in General Discussion. I've moved it to the API Developers board, which the API team monitors closely.

    We're looking into this error right now and will hopefully have an update shortly.

    Thanks,
    Michael Carey

    Product Manager
    Lightspeed HQ
  • Michael CareyMichael Carey Posts: 68Administrator, Lightspeed Staff moderator
    It seems that this issue was caused by an incorrect Authorization header. The access token should be passed as follows:

    Authorization: Bearer {access_token}

    We've filed a ticket with the development team to correct the error and return a 401 instead of a 500.
    Michael Carey

    Product Manager
    Lightspeed HQ
Sign In or Register to comment.