You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have come across an issue whereby my node is throwing this error:
if (error.code == "ECONNREFUSED") {
^
TypeError: Cannot read property 'code' of null
Doing some quick debugging shows that the error is null but that the response code is 400.
This causes an the app to crash in client.js line 43.
Looking at my own code I think I might have some misformed sparql queries but I thought I'd raise the issue anyway, for possible greater error handling.
varresponseHandler=functionresponseHandler(error,response,responseBody,callback){varcontinuation=emptyFn;if(error||response.statusCode>=300){varerr;if(error.code=="ECONNREFUSED"){err="Could not connect to SPARQL endpoint.";}else{err="SparQL query failed.";}continuation=nextTick(callback,[newError(err),null],that);}
The text was updated successfully, but these errors were encountered:
I have come across an issue whereby my node is throwing this error:
Doing some quick debugging shows that the error is null but that the response code is 400.
This causes an the app to crash in client.js line 43.
Looking at my own code I think I might have some misformed sparql queries but I thought I'd raise the issue anyway, for possible greater error handling.
The text was updated successfully, but these errors were encountered: