Commit d7a3b7d
authored
Log proxy errors (#519)
## Description
<!-- Provide a brief description of the changes in this PR -->
Add logging to proxy endpoint to see where error occurs when fetching
ipfs urls on vercel backend
## Type of change
<!-- Check the appropriate options that apply to this PR -->
- [ ] Bug fix
- [ ] New feature
- [ ] Protocol integration
- [ ] Documentation update
- [x] Other (please describe): logging for bug fix
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Add logging to proxy endpoint in `route.ts` to diagnose errors when
fetching IPFS URLs, and fix indentation in `ip.ts`.
>
> - **Logging**:
> - Add `console.error` for unsupported protocol and private IP
detection in `GET()` in `route.ts`.
> - Log general errors in `GET()` in `route.ts`.
> - **Formatting**:
> - Fix indentation in `checkURLForPrivateIP()` in `ip.ts`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=solana-foundation%2Fexplorer&utm_source=github&utm_medium=referral)<sup>
for d54cb45. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent bad411a commit d7a3b7d
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
0 commit comments