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

Đang mở
#998 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
833
Fork
240
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-javascript

Tất cả issue của microsoftgraph/msgraph-sdk-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.