You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed in the self hosted infracost-cloud-pricing-api pod's logs that it keeps repeating this set of error logs when cost estimations happen:
2023-11-29T09:23:52Z {"level":50,"time":1701249832660,"pid":18,"hostname":"infracost-cloud-pricing-api-7555d776c9-sttsg","msg":"Error querying exchange rate:"}
2023-11-29T09:23:52Z {"level":50,"time":1701249832660,"pid":18,"hostname":"infracost-cloud-pricing-api-7555d776c9-sttsg","err":{"type":"TypeError","message":"Cannot read properties of undefined (reading 'GBP')","stack":"TypeError: Cannot read properties of undefined (reading 'GBP')\n at /usr/src/app/dist/utils/currency.js:281:58\n at step (/usr/src/app/dist/utils/currency.js:33:23)\n at Object.next (/usr/src/app/dist/utils/currency.js:14:53)\n at fulfilled (/usr/src/app/dist/utils/currency.js:5:58)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"},"msg":"Cannot read properties of undefined (reading 'GBP')"}
2023-11-29T09:23:52Z {"level":40,"time":1701249832660,"pid":18,"hostname":"infracost-cloud-pricing-api-7555d776c9-sttsg","msg":"No exchange rate found, falling back to default rate"}
I have checked and firewall does not block calls to api.exchangerate.host, I can see a bunch of them corresponding to the error logs from the infracost-cloud-pricing-api pod looking like this:
HTTPS request from <pod's node ip address> to dashboard.api.infracost.io:443. Action: Allow.
-- | -- | -- | --
HTTPS request from <pod's node ip address> to api.exchangerate.host:443. Action: Allow. <--- this one is repeated many times, corresponds to error logs in the infracost-cloud-pricing-api pod.
The commands for infracost are running in gitlab and I am using these variables to control currency and location:
is GBP incorrect value for exchangerate.host or for self hosted infracost it does not work as some kind of account needs to be set up with exchangerate.host?
Am I missing something?
Is there a way to debug this better and see more detail of the error log?
The text was updated successfully, but these errors were encountered:
Hi,
I just noticed in the self hosted infracost-cloud-pricing-api pod's logs that it keeps repeating this set of error logs when cost estimations happen:
I have checked and firewall does not block calls to
api.exchangerate.host
, I can see a bunch of them corresponding to the error logs from the infracost-cloud-pricing-api pod looking like this:The commands for
infracost
are running ingitlab
and I am using these variables to control currency and location:This is my script:
is GBP incorrect value for exchangerate.host or for self hosted infracost it does not work as some kind of account needs to be set up with exchangerate.host?
Am I missing something?
Is there a way to debug this better and see more detail of the error log?
The text was updated successfully, but these errors were encountered: