Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use https request in session desktop project? #3006

Open
1 task done
FoxSmart0302 opened this issue Jan 8, 2024 · 0 comments
Open
1 task done

How to use https request in session desktop project? #3006

FoxSmart0302 opened this issue Jan 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@FoxSmart0302
Copy link

Is there an existing request for feature?

  • I have searched the existing issues

What feature would you like?

I cant' send request out
This is example code.
try {
const response = await axios.get('https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC,ETH&tsyms=USD,JPY,EUR&28475892d249fbdf4a8264d9f16b8e3e1377cc2b9056a78165576b08add3ae3c', {
headers: {
"Accept": "/",
}
});
const data = response.data;
setPriceData(data);
console.log("===priceData:", data, priceData)
} catch (error) {
console.error('Error fetching crypto prices:', error);
}

But I get this error:
"
Error fetching crypto prices:
AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …}
fetchCryptoData
/home/smartfox/Docum…et/Dashboard.js:147
GET https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC,ETH&tsyms=USD,JPY,EUR&2847589… net::ERR_NOT_IMPLEMENTED
"

Anything else?

I cant send request out.
What's the problem and how to fix this problem?
It's urgent problem.
Please give me solution.

@FoxSmart0302 FoxSmart0302 added the enhancement New feature or request label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant