Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion packages/proxygen/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function proxygenErrorHandler(error: unknown, logger: Logger) {
stack: error.stack,
message: error.message,
config: {
data: error.config?.data,
data: (error.config?.data ?? "").toString().slice(0, 255), // limit to first 255 chars as it may be full spec
headers: error.config?.headers,
method: error.config?.method,
url: error.config?.url
Expand Down
4 changes: 2 additions & 2 deletions packages/proxygen/tests/proxygenInstanceDelete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("Unit test for proxygenInstanceDelete", function () {
status: 500,
message: "Request failed with status code 500",
config: {
data: undefined,
data: "",
headers: expect.objectContaining({
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
Expand Down Expand Up @@ -142,7 +142,7 @@ describe("Unit test for proxygenInstanceDelete", function () {
axiosError: expect.objectContaining({
message: "Something awful happened",
config: {
data: undefined,
data: "",
headers: expect.objectContaining({
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
Expand Down
4 changes: 2 additions & 2 deletions packages/proxygen/tests/proxygenInstanceGet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe("Unit test for proxygenInstanceGet", function () {
status: 500,
message: "Request failed with status code 500",
config: {
data: undefined,
data: "",
headers: expect.objectContaining({
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
Expand Down Expand Up @@ -139,7 +139,7 @@ describe("Unit test for proxygenInstanceGet", function () {
axiosError: expect.objectContaining({
message: "Something awful happened",
config: {
data: undefined,
data: "",
headers: expect.objectContaining({
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
Expand Down
Loading