Allow viewing the raw request and response for debugging when using the SDK

Aperta
#998 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
api

Direzione di ricerca

The issue names no files or tests. Start by tracing the Graph client and call middleware request pipeline; determine how a debug mode or middleware callback could expose request and response URLs, payloads, and headers. Done means callers can inspect this information in Node applications without using a proxy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

request: feature

Feature Request

Is your feature request related to a problem? Please describe

When using the SDK, sometimes I want to debug the call. Often this happens when a call fails and I want to verify what's going over the wire and what's coming back to determine if it's the Graph API or the SDK that's failing.

Describe the solution you'd like

I'd like to be able to put the Graph client, or a call in debug mode, where I get to see the request and response (URL + payload + headers) that go over the wire.

Describe alternatives you've considered

In a browser I can get this information from the network tab, but in Node apps, this would require a proxy which is inconvenient.

Additional context

Perhaps we could use implementing this feature using middleware, where we offer additional middleware that's logging requests and responses to console or better yet, offers a callback that allows me to decide how I want to deal with the information.

Lingua principale
TypeScript
Stelle
833
Fork
240
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-javascript

Tutte le issue di microsoftgraph/msgraph-sdk-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.