Closed verylys closed 2 months ago
That should work like that, but I have no us account so I never try non eu API...
adding the --token
$ ovh-bill-importer --api us --dest="OVH-US_invoices/" --token ovh-us.txt Invoices emit before 2022-01-01 won't be imported [OVH] MISSING_CREDENTIAL issue a new one: ae9526a141c44ddbfb6bbbfa6c50bf83 Please validate certificate with this url to continue: https://www.ovh.com/auth/sso/api?credentialToken=XXXXXXXXX
It does not work, event with the --token option. I tried to manually change the ovh.com to ovh.us when opening the browser (https://www.ovh.us/auth/sso/api?credentialToken=XXXXXXXXX ) , but got a: "Error code: Invalid credential token"
may be a screen shoot can help, or at least provide a stack
Sorry but I don't see what can I give you more. --api us should not try to create a certificate on ovh.com but on ovh.us
Hello, still broken for me.
--api us is used as parameter, but host is wrong (host: 'eu.api.ovh.com',)
$ ovh-bill-importer --dest="ovh/" --split=none --concurrency=3 --max-age 365D --api us --token vg_us.json
Invoices emit before 2022-10-13 won't be imported
Using previous token from vg_us.json
OvhError: This application key is invalid in 0.2 Sec.
at handleResponse (/usr/local/lib/node_modules/ovh-bill-importer/node_modules/@ovh-api/api/dist/requestHandler.js:112:11)
at IncomingMessage.
}, method: 'GET', path: '/me', errorCode: 'HTTP_ERROR', httpCode: '403 Forbidden' }
I do not have any OVH US Account, so I can not test it.
Hello Uriel, No need to have an account:
This is just not normal. Host should be api.us.ovhcloud.com when the tool is called with "--api us" parameter
Up :) @UrielCh would love to see a fix for that 🙏🏻🙏🏻
mmmm....
ok
issue localized.
Hi,
Quick note: ovh-bill-importer v1.2.0 is out and the new certificate error message confirms it's working as intended (yay for debugging!). Can you give it a once-over?
Also, I'm back in Europe job-hunting after my last company closed. If you know of any leads, especially with OVH-related projects, I'm on the lookout.
Thanks!
Well thank you ! 2023-06-12_INV_US565926_18.24USD.pdf
The connection to the US api is now fine, the invoice are listed/downloaded. BuT the invoice content (pdf files) is wrong. They all contain the same thing, a HTML code (see attachment).
arf the pdf file contains an HTML page....
I need a response from the OVH API to debug that, but that may be an OVH issue.
Hi !
$ ovh-bill-importer --api us --dest="OVH-US_invoices/" Invoices emit before 2022-01-01 won't be imported [OVH] MISSING_CREDENTIAL issue a new one: 5004e5f14f6c83bedb418675a2d62d24 Please validate certificate with this url to continue: https://www.ovh.com/auth/sso/api?credentialToken=XXXXXXXX
Am I wrong or it should use https://www.ovh.us instead of https://www.ovh.com when "--api us" is used ?