Skip to content

Preview route is sending invalid status codes #1882

@dancgray

Description

@dancgray

Expected Behaviour

Any preview responses should have a valid HTTP status

Actual Behaviour

Server responds with HTTP status of "undefined" when request is aborted.
Probably due
status-issue.txt
to routes/preview/index.js lines 83, 116 and 128

Value for err is "Error: Request aborted"

Should we be passing 400 status in this circumstance?

Steps to Reproduce

I only seem to be able to reproduce this on larger courses and when using Firefox.

It has also been reported on the forum here.

Versions

  • Authoring Tool Version: 0.4.1
  • Framework Version: v2.2.5
  • Operating System: MacOS
  • Browser: Firefox 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: mergedCompleted, reviewed, and merged issuesT: bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions