Skip to content

IdP crashes when queried for non-existing interaction ID #586

Closed

Description

@matthieubosquet

When the ChooseInitialInteractionHandler is called with a non-existing input request interaction, the server crashes. It should not.

2021-02-02T12:43:47.110Z [ExpressHttpServerFactory] info: Starting server at http://localhost:3000/
2021-02-02T12:43:51.327Z [ExpressHttpServerFactory] info: Received request for /interaction/Lncx8TFKYpqovk0uANOqe/register
Waiting for the debugger to disconnect...
events.js:292
      throw er; // Unhandled 'error' event
      ^
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at writeAfterEnd (_http_outgoing.js:668:15)
    at ServerResponse.end (_http_outgoing.js:788:7)
    at BasicOnErrorHttpHandler.handle (/Users/Matthieu/Code/solid/community-server/dist/server/util/BasicOnErrorHttpHandler.js:15:30)
    at BasicOnErrorHttpHandler.handleSafe (/Users/Matthieu/Code/solid/community-server/dist/util/handlers/AsyncHandler.js:30:21)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async ErrorHandlingWaterfallHandler.handle (/Users/Matthieu/Code/solid/community-server/dist/util/handlers/ErrorHandlingWaterfallHandler.js:19:20)
    at async SequenceHandler.handle (/Users/Matthieu/Code/solid/community-server/dist/util/handlers/SequenceHandler.js:27:26)
    at async /Users/Matthieu/Code/solid/community-server/dist/server/ExpressHttpServerFactory.js:24:17
Emitted 'error' event on ServerResponse instance at:
    at writeAfterEndNT (_http_outgoing.js:727:7)
    at processTicksAndRejections (internal/process/task_queues.js:81:21) {
  code: 'ERR_STREAM_WRITE_AFTER_END'
}

Activity

  1. matthieubosquet commented on Feb 2, 2021

    @matthieubosquet
    ContributorAuthor

    Fixed by #587

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🐛 bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions