Skip to content

GraphQL changelogByEvent without authorization header #313

@lukaskett

Description

@lukaskett

Describe the bug
When using GraphQL changelogByEvent without authorization i get 200 OK.

To Reproduce
Steps to reproduce the behavior:

  1. Use query
query changelogByEvent($eventId: String!, $origin: String) {
			changelogByEvent(eventId: $eventId origin: $origin) {
				id
				type
				previousValue
				newValue
				origin
				competitor {
					id
					externalId
					firstname
					lastname
				}
				createdAt
			}
		}
  1. Check the response

Expected behavior
Return 4xx unauthorized

Additional context
Response

{
    "data": {
        "changelogByEvent": null
    },
    "errors": [
        {
            "message": "Unexpected error.",
            "path": [
                "changelogByEvent"
            ],
            "locations": [
                {
                    "line": 2,
                    "column": 4
                }
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR"
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendpriority: mediumIssues that are significant but not urgent. These are generally planned for the next sprint

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions