Forum Discussion

damienwhaley's avatar
damienwhaley
Contributor
8 years ago

Getting a 500 server error with a custom endpoint

Hi all, I've set up a custom endpoint which is trying to list out attachments to images. However whenever I try to use the result of the query it will cause a 500 error on the server. Obviously I'm...
  • PerBonomi's avatar
    8 years ago

    Pro-tip when troubleshooting endpoint errors: Use the code as a component first.

     

    In this case I ran it and voila:

     

    ParseException:Syntax error in template "StringDisplay" in line 20, column 59:
    Encountered "/>", but was expecting:
        ">"