-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error("invalid type: null, expected struct Measurements" #1
Comments
Can you try one or two things for me? First: Log in to Energiatili, and go to "Kulutus". What's the URL you are getting? I'm getting URL Second: If you feed adventurous, can you try fiddling with path defined in
to maybe figure out what's missing? Probably culprits are You can also turn on more logging with |
My url is at first: Allready tested that at least on same browser and session after that url, also url https://www.energiatili.fi/Reporting/CustomerConsumption/UserConsumptionReport found on source was giving me same output Tried to modify url in code to: Still same error. With that logging I can see that all text from site is in finnish, could that be a problem? It looks like the actual data is there:
|
Ah, I looked the error more closely. There are maybe three places in the code where it could fail:
Please, can you try one line at the time to replace the My guess is that one of the items I'm expecting is not there. And since it's JSON there's null. It would help to know which one. |
with first line changed:
second one:
error: aborting due to previous error For more information about this error, try To learn more, run the command again with --verbose.` and third one: error: aborting due to previous error For more information about this error, try To learn more, run the command again with --verbose.` |
Hello. Tried this without no succes, and while Rust is new language for me, with quite limited skills to debug. Installed with instructions (Debian 9.3), made config file with login details and running it gets me error message:
While using wrong userame or password in config, error is different, so I think those are not the problem
One thing that came to mind, I can see 3 different "käyttöpaikka" on website (current address and two old, might that be something I need to select.
The text was updated successfully, but these errors were encountered: