Closed stevenvegt closed 6 years ago
Agreed, this should be fixed. We are working on a 2.0.0 release of diva. @koen92 can you check that we fixed this in 2.0.0?
This has been resolved in 2.0.0 by adding a 'DEBUG' loglevel, see the troubleshooting section in the new documentation for help on how to use this: https://github.com/Alliander/diva-irma-js#troubleshooting
When performing a malformed request to the IRMA server, it usaually returns a helpfull error message in the response body like:
diva-irma-js ignores the body reducing the information to something like
Bad Request
:new Error(`Error starting IRMA session: ${error.message}`);
Which maked debugging and error handling a bit harder than it should be.