Update sse-discover.js

SSE-discover, now takes exceptions into account