Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

HTTP connection hangs when trying to create a duplicate badge instance #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgs
Copy link
Contributor

@tgs tgs commented Apr 29, 2014

I'm able to issue badge instances by using POST /systems/:slug/badges/:slug/instances. However, if I try to issue a second badge to the same e-mail address, the server does not behave properly. It should give me back an HTTP 409 Conflict, as in the "Duplicate entry" error message in this other endpoint. Instead, it either closes the connection or leaves it hanging, I can't tell.

The pull request here is obviously not a solution, it just points out where the error-handling logic could go. It does cause the HTTP connection to terminate correctly, so my client library doesn't hang forever waiting for a response.

@simonwex simonwex added this to the OBI 1.1 & Maintenance Work milestone Jun 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants