datawire / mdk

Microservices Development Kit. Open source SDK for building microservices in multiple languages.
https://www.datawire.io
Apache License 2.0
58 stars 6 forks source link

Users need for MDK to tell them when things go wrong connecting to the server #195

Open kflynn opened 7 years ago

kflynn commented 7 years ago

If you call mdk.start() with an invalid token, when it tries to connect to the MCP, it will get a 401 (or sometimes a 500 (??)). The caller, though, never gets to see that.

So, for example, when one creates a doppelgänger token, the token expires after a little while. If you try to reconnect after it expires, nothing will work correctly, but Strobe can't tell that your token has expired, so it can't let you know what's going wrong.