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

Cryptocurrency to currency not working #108

Closed
meteorhill opened this issue Apr 10, 2023 · 10 comments
Closed

Cryptocurrency to currency not working #108

meteorhill opened this issue Apr 10, 2023 · 10 comments

Comments

@meteorhill
Copy link

Are you using the latest version of the workflow?
Yes

Describe the bug
CleanShot 2023-04-11 at 03 51 48@2x

The API key was applied and entered correctly, but output was 'updating rate' all the time. I don't know what the problem is, and I also tried Alfred's debugging mode but still cannot find out.

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred '...'
  2. Type '1bit t'
  3. See error

Expected behavior
show exchanged currencies

Debug Output
CleanShot 2023-04-11 at 04 00 52@2x

System information:

  • OS: macOS 13.3.1 (22E261)
  • Alfred Version 5.0.6
  • PHP Version - 8.2.4

Additional context
CleanShot 2023-04-11 at 03 49 48@2x

@meteorhill
Copy link
Author

CleanShot 2023-10-03 at 12 46 37@2x

@biati-digital
Copy link
Owner

Make sure you have a Fixer API key, please see #131

@meteorhill
Copy link
Author

Make sure you have a Fixer API key, please see #131

It's not the same issue. The cryptocurrency key from https://coinmarketcap.com/api/pricing never works.
image

@biati-digital
Copy link
Owner

The coinmarketcap API it's working for me, do you get the same error if you just type 1btc?

@meteorhill
Copy link
Author

meteorhill commented Oct 3, 2023

The coinmarketcap API it's working for me, do you get the same error if you just type 1btc?

It just stuck. FYI: I need a proxy to access Coinmarketcap. Is that the problem? I used proxy all the time, it still stuck tho.

PS: I can access Fixer without a proxy, and its API works perfectly whether I'm using a proxy or not.

CleanShot 2023-10-03 at 17 05 20@2x

@biati-digital
Copy link
Owner

Can you please try the API from the terminal? just open the terminal app and paste the following code. Replace the part that says APIKEYHERE with your API key, press enter and let me know what you get.

curl "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest?CMC_PRO_API_KEY=APIKEYHERE"

@meteorhill
Copy link
Author

meteorhill commented Oct 3, 2023

272284490-2eccfb07-6167-4bbd-aff1-a6585cff7c03

Edited: I removed your API from the screenshot

@biati-digital
Copy link
Owner

Well it's not the workflow, it could be the proxy as you mention, unfortunately there's nothing i can do to help.

If you are able to change your configuration you can use the same command to test the connection to the API, If the connection works you should see a huge text something like this:

Screen Shot 2023-10-03 at 7 57 41

@meteorhill
Copy link
Author

Thank you so much for your time and effort.

@biati-digital
Copy link
Owner

👍 i hope you can solve the connection issue. I'll close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants