Skip to content

CORS error on /api/v1/responses? #1314

Description

@upaq

The API call

https://prod-api-dot-baobab.appspot.com/api/v1/responses?event_id=49&include_unsubmitted=False&language=en

succeeds (returns JSON) include_unsubmitted=False, but the call

https://prod-api-dot-baobab.appspot.com/api/v1/responses?event_id=49&include_unsubmitted=True&language=en

(with include_unsubmitted=True) fails with

Unknown status 500
<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>
  </body>
</html>

Similarly, https://domain.com/event/responseList fails when the Include un-submitted button is checked, but succeeds when Include un-submitted is left un-checked.

Cause?

It seems like it is the consequence of a Cross-Origin Resource Sharing (CORS) error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    High PriorityA high priority issuebugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions