msgraph-sdk-javascript icon indicating copy to clipboard operation
msgraph-sdk-javascript copied to clipboard

Enabling the requesting object to be logged out either via debug or in error object

Open anvilation opened this issue 4 years ago • 1 comments

Feature Request

Is your feature request related to a problem? Please describe

Whilst troubleshooting using the Large File request I kept getting a message indicating that the message was malformed. However, because I running my app in Node (console-based app) there was no way for me to meaningfully take the request object being generated by LargeFileUploadTask.createUploadSession

I eventually worked around it by going to the compiled library and putting some console.logs on the GraphRequest.send method.

Describe the solution you'd like

Not sure, I would imagine one of two options.

  1. when debug is turned on it also turns on the request object as well as the URL that you are requesting
  2. Add the request object to the error response.

Describe alternatives you've considered

So far the alternative is to hack at the compiled code which is not ideal.

Additional context

....

AB#9542

anvilation avatar May 20 '21 12:05 anvilation

@anvilation Thank you for your feedback! This feature seems to be a good enhancement to improve the usability of the Graph JS client library.

nikithauc avatar May 20 '21 18:05 nikithauc