Closed mwildrick closed 1 year ago
Hi, the error is that it can not connect to the currency API
CURL FAILED: request to https://api.apilayer.com/fixer/latest failed, error was: The requested URL returned error: 403
Are you using a new Fixer API Key?
Yes I set it one up prior to trying it.
Taken from this page
did i get it from the wrong place?
Hi, Please run this command from your terminal, replace yourapikey
with your API key and share the output.
curl "https://api.apilayer.com/fixer/latest?base=USD" \
-H 'apikey: yourapikey' \
-H 'Content-Type: text/plain'
Hopefully we can get more information about the error.
Oddly enough It is working now. Maybe there was a delay before the API key is active?
Perfect, i'll close this issue now.
If you have a problem with the workflow please answer the following questions.
Are you using the latest version of the workflow? Before creating an issue make sure you are using the latest version, you can find the latest version in the releases page
Describe the bug Outside of crytpo and USD, currencies like INR, EUR, GBP etc are not being recognized.
To Reproduce Steps to reproduce the behavior:
Expected behavior I'd expect the same thing to happen when i type in crypto currencies. For examples: 100 USD to GB (I was actually trying GPB)
Debug Output
[09:24:01.656] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '' [09:24:01.712] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:01.716] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:01.775] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '0' [09:24:01.798] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:01.802] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:01.921] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00' [09:24:01.951] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:01.956] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:01.964] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 ' [09:24:02.000] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:02.004] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:02.448] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 U' [09:24:02.514] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:02.519] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:02.840] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 US' [09:24:02.915] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:02.919] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:03.029] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD' [09:24:03.060] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:03.065] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[{"title":"100 USD","subtitle":"1 USD = 1 USD","arg":100,"icon":{"path":"flags\/USD.png"},"mods":{"cmd":{"valid":true,"arg":100,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":1,"subtitle":"Action this item to copy the value of 1 to the clipboard"}}}]} [09:24:03.529] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD ' [09:24:03.589] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:03.597] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[{"title":"100 USD","subtitle":"1 USD = 1 USD","arg":100,"icon":{"path":"flags\/USD.png"},"mods":{"cmd":{"valid":true,"arg":100,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":1,"subtitle":"Action this item to copy the value of 1 to the clipboard"}}}]} [09:24:03.678] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD t' [09:24:03.734] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:03.739] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[{"title":"2,411.69 T","subtitle":"1 USD = 24,116.97537769 T - Threshold","arg":"2,411.69","icon":false,"mods":{"cmd":{"valid":true,"arg":2411.69,"subtitle":"Action this item to copy the amount with no format"},"alt":{"valid":true,"arg":24116.97537769,"subtitle":"Action this item to copy the value of 1 to the clipboard"}}}]} [09:24:03.744] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD to' [09:24:03.771] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:03.776] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:03.793] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD to ' [09:24:03.884] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:03.889] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:04.549] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD to E' [09:24:04.612] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:04.618] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:04.649] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD to EU' [09:24:04.675] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:04.680] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] {"items":[]} [09:24:04.765] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Queuing argument '00 USD to EUR' [09:24:04.933] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] Script with argv '(null)' finished [09:24:04.940] Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] CURL FAILED: request to https://api.apilayer.com/fixer/latest failed, error was The requested URL returned error: 403{"items":[{"title":"Updating rates...","valid":false,"arg":""}],"rerun":0.2,"variables":{"rerun":true}} [09:24:04.942] ERROR: Calculate Anything[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C5AE0D1A-8496-41AE-93A4-13DADCE7C6D8%3E2679D5D4-9D36-4AD4-A1EE-59EACA36C6E9)] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: CURL FAILED: request to https://api.apilayer.com/fixer/latest failed, error was The requested URL returned error: 403{"items":[{"title":"Updating rates...","valid":false,"arg":""}],"rerun":0.2,"variables":{"rerun":true}}
Please enable debug (see image) open Alfred and type the conversion that it's not working, you will see that the debug window is populated with a lot of text, please paste that text in here.
System information:
Additional context Add any other context about the problem here.