thorsten / sunnyportal-csv-downloader

CSV Downloader for SMA Sunny Portal
MIT License
5 stars 1 forks source link

File not downloaded #8

Closed tituspijean closed 3 years ago

tituspijean commented 3 years ago

Thank you for this project!

Note that I had to change the string Jetzt downloaden to Download now to match my English interface.

https://github.com/thorsten/sunnyportal-csv-downloader/blob/5f70fae8344d6d337d8ac0b545ae3d304f346824/cypress/integration/ennexos.sunnyportal.spec.ts#L35

However, no file is downloaded. Cypress complains about dconf and about stopping abruptly, but the log and video do not show any error for the browsing itself. I am on Debian in WSL for Win10. Here is the relevant log:

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  ennexos.sunnyportal.spec.ts                                                     (2 of 2)

  Visit ennexos.sunnyportal.com

(Cypress:1439): dconf-WARNING **: 13:21:45.828: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.850: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.883: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.895: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.919: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.934: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.953: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.967: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:45.985: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.001: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.016: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.033: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.049: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.065: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”

(Cypress:1439): dconf-WARNING **: 13:21:46.082: failed to commit changes to dconf: Unknown or unsupported transport “disabled” for address “disabled:”
    ✓ redirects to /dashboard on success (8052ms)

  1 passing (9s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     9 seconds                                                                        │
  │ Spec Ran:     ennexos.sunnyportal.spec.ts                                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF
  -  Finished processing: /home/ME/sunnyportal-csv-downloader/cypress/video     (1 second)
                          s/ennexos.sunnyportal.spec.ts.mp4

====================================================================================================

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  classic.sunnyportal.spec.ts              00:08        1        -        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ennexos.sunnyportal.spec.ts              00:09        1        1        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  1 of 2 failed (50%)                      00:17        2        1        1        -        -

/home/ME/.cache/Cypress/6.2.1/Cypress/Cypress[1439]: ../../third_party/electron_node/src/api/callback.cc:245:MaybeLocal<v8::Value> node::MakeCallback(v8::Isolate *, Local<v8::Object>, Local<v8::Function>, int, Local<v8::Value> *, node::async_context): Assertion `(env) != nullptr' failed.
The Test Runner unexpectedly exited via a exit event with signal SIGABRT

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux (Debian - 10)
Cypress Version: 6.2.1
thorsten commented 3 years ago

Hi @tituspijean, thanks for your feedback! You are right, I used this only on Sunny Portal powered by ennexOS in German language, I will fix that language dependency. For the second issue, it will be hard for me to reproduce this as I only have a Mac.

thorsten commented 3 years ago

I re-tested it and a file download popup occurs for me.

thorsten commented 3 years ago

I removed the string "Jetzt downloaden".

thorsten commented 3 years ago

Looks like Cypress is crashing... v0.0.2 supports a headless execution as well, maybe this works for you.

tituspijean commented 3 years ago

Hello, and sorry for the very late answer. Today I have started over on a new VM and redownloaded your project and its dependencies, and it worked. 🎉 CSV file is in cypress/downloads. Many thanks for your work!