better error handling
This commit is contained in:
@@ -188,6 +188,7 @@ class RPCProxy {
|
|||||||
responseType: 'stream',
|
responseType: 'stream',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
'Accept-Encoding': 'identity', // Request uncompressed responses
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -268,6 +269,7 @@ class RPCProxy {
|
|||||||
const response = await client.post('/', requestBody, {
|
const response = await client.post('/', requestBody, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
'Accept-Encoding': 'identity', // Request uncompressed responses
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user