Use get api error 403
arcanoix opened this issue · 0 comments
arcanoix commented
Good afternoon everyone, I'm consuming the Defillama API with Node.js and Fetch, but when I try to execute the action, it generates a 403 error. From what I can see, the server hosting the API is using Cloudflare. Does anyone know how to solve this issue? Thank you.
The endpoint: https://api.llama.fi/lite/protocols2
![Screenshot 2023-05-18 at 17 32 44](https://private-user-images.githubusercontent.com/6331999/239386338-4523ce07-7016-4f90-89bc-68ff29eff059.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ1MDg5MDgsIm5iZiI6MTcwNDUwODYwOCwicGF0aCI6Ii82MzMxOTk5LzIzOTM4NjMzOC00NTIzY2UwNy03MDE2LTRmOTAtODliYy02OGZmMjllZmYwNTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDEwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAxMDZUMDIzNjQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDZhYjk5ZGYwMzQ4N2M2ODdiNmJhZTcyZjQxYmJhMzI2MzlhOTBhYjMzODc1YTA2N2I0MTg4MmI1NjAwNjllNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PsbGn5K-oR8FcC3JwYA5RVjL_k7EZqhU-KDvfcbkDNU)