Skip to content
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

feat(sdk): automatically log http calls to API #3081

Merged
merged 6 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix some error
  • Loading branch information
bodinsamuel committed Nov 28, 2024
commit c77ef964afbb66f8f2bf960d20714da30170e0c8
4 changes: 2 additions & 2 deletions packages/shared/lib/services/proxy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class ProxyService {
},
response: {
code: response.status,
headers: response.headers as Record<string, string>
headers: (response.headers || {}) as Record<string, string>
}
}
]
Expand Down Expand Up @@ -574,7 +574,7 @@ class ProxyService {
},
response: {
code: error.response?.status || 500,
headers: error.response?.headers as Record<string, string>
headers: (error.response?.headers || {}) as Record<string, string>
},
error: {
name: error.name,
Expand Down
Loading