We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! I tried to run your code but it gives me the following error:
Exception has occurred. DataException (errorBadRequest)
The error occurs in this part of the code:
final favoritePairProvider = FutureProvider<FavoritePair>((ref) async { final cancelToken = CancelToken(); ref.onDispose(() => cancelToken.cancel()); final settings = ref.watch(cryptoSettings); String exchangeName = settings.maybeWhen( data: (details) => details.favoriteExchange, orElse: () => ""); String pairName = settings.maybeWhen( data: (details) => details.favoritePair, orElse: () => ""); if (exchangeName.isEmpty || pairName.isEmpty) { throw DataException(message: LocaleKeys.errorSomethingWentWrong); } Pair pair = Pair(pair: pairName, exchange: exchangeName); try { PairSummary pairSummary = await ref .read(cryptoRepository) .getPairSummary(exchangeName, pairName, cancelToken: cancelToken); return FavoritePair(pair: pair, pairSummary: pairSummary); } on DataException catch (error) { if (error.message == LocaleKeys.errorRequestNotFound) { ref.read(cryptoSettings.notifier).verifyFavoritePair(); } throw error; } });
I also changed the .env-example file to .env and copied my gotten API private key like below into it:
.env-example
.env
API_KEY=ddTaK3jVw5fgdfgdgfdgfgfdgfdgfd
Do you know how can I fix it?
The text was updated successfully, but these errors were encountered:
You have to use the public key.
Sorry, something went wrong.
No branches or pull requests
Hello!
I tried to run your code but it gives me the following error:
The error occurs in this part of the code:
I also changed the
.env-example
file to.env
and copied my gotten API private key like below into it:API_KEY=ddTaK3jVw5fgdfgdgfdgfgfdgfdgfd
Do you know how can I fix it?
The text was updated successfully, but these errors were encountered: