dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
151 stars 94 forks source link

chore: updates agent error response #885

Closed krpeacock closed 3 months ago

krpeacock commented 3 months ago

Description

When the agent encounters http error codes, we have reported a AgentHTTPResponseError, saying "Server returned an error". This changes the language to "Gateway" for clarity

Checklist:

github-actions[bot] commented 3 months ago

size-limit report 📦

Path Size
@dfinity/agent 85.62 KB (+0.01% 🔺)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.71 KB (+0.02% 🔺)
@dfinity/assets 80.25 KB (+0.01% 🔺)
@dfinity/identity 57.92 KB (+0.02% 🔺)
@dfinity/identity-secp256k1 265.65 KB (+0.01% 🔺)