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

Open
#457 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start by tracing LargeFileUploadTask.createUploadSession to GraphRequest.send and review how debug output and error responses are currently produced. Compare the two requested approaches for exposing the generated request object, then verify that the chosen behavior makes malformed-request troubleshooting possible without editing compiled library code.

Written by the indexing model from the issue text.

Description

enhancement P2 request: feature

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

Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.