loopback icon indicating copy to clipboard operation
loopback copied to clipboard

200 status on db server connection fail exception

Open seanbrookes opened this issue 12 years ago • 3 comments

If the Oracle db server @ demo.strongloop.com goes to sleep it throws the following exception:

ORA-03135: connection lost contact\nProcess ID: 6680\nSession ID: 103 Serial number: 12475\n

but the REST API responds with a 200 status.

Is this by design?

The docs @ http://docs.strongloop.com/display/DOC/REST+Docs+Outline are a bit ambiguous.

I would expect the server to throw some kind of 4xx error but if it is by design we should document this.

200-rest-error

seanbrookes avatar Jan 03 '14 00:01 seanbrookes

LoopBack Workspace 2.0.0

seanbrookes avatar Jan 04 '14 00:01 seanbrookes

@seanbrookes @raymondfeng can you still reproduce this issue using loopback 2.x and/or loopback-workspace 3.x?

bajtos avatar Oct 22 '14 16:10 bajtos

I'm closing this as it was a specific use case when developing iCars. If it really is an issue it will come back from outside

seanbrookes avatar Oct 22 '14 17:10 seanbrookes