-
Notifications
You must be signed in to change notification settings - Fork 231
GraphError has no code and message #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@borys-kupar Thank you for reporting this issue. will fix this in our next release. |
The fix is released as a preview - 1.7.0-Preview.2 |
@muthurathinam Unfortunately the issue seems to be not fixed. The GraphError is constructed in last else block containing the The error I get:
|
@borys-kupar It is working fine for me. As the error object contains This is what I am getting when I try with the same value for startTime as yours while creating a calender event, {
"statusCode":400,
"code":"InvalidDateTime",
"message":"The value '2019-06-07T00:00:00.000 00:00' of parameter 'DateTime' is invalid.",
"requestId":"de7250b7-397a-42f7-a56a-727730787ebe",
"date":"2019-05-30T00:25:03.000Z",
"body":"{\"code\":\"InvalidDateTime\",\"message\":\"The value '2019-06-07T00:00:00.000 00:00' of parameter 'DateTime' is invalid.\",\"innerError\":{\"request-id\":\"de7250b7-397a-42f7-a56a-727730787ebe\",\"date\":\"2019-05-30T05:55:03\"}}"
} FYI: I am using version 1.7.0 of the library Can you verify the version of the library in your code once again? |
@muthurathinam I use the latest version 1.7.0. It seems like for me error object doesn't contain |
Can you help me with the exact response that you are getting from the library ? Graph error in this comment seems to have "error" property in it. |
@muthurathinam sorry, it seems indeed like I had cached node_module in my Docker container. Can't reproduce the issue anymore. |
I found the issue related to switching from Node 10 to 12 😓 |
Bug Report
Prerequisites
Description
When GraphError is constructed in constructErrorFromRawResponse function it has only raw body set. That seems to be done on intention, but it's not clear what is the reason behind it.
Console Errors:
Steps to Reproduce
Expected behavior:
GraphError should have raw error parsed, and have properties
code
,message
,requestId
set.Actual behavior: [What actually happened]
Only raw error is available, other properties are set to
null
.The text was updated successfully, but these errors were encountered: