PyPSA / whobs-server

Online optimisation tool for wind+solar+storage systems
GNU Affero General Public License v3.0
35 stars 12 forks source link

Solver isn't working on model.energy? #21

Open christopherstelter opened 1 year ago

christopherstelter commented 1 year ago

Existing solved solutions seem to still work, but when I try a new solution, I get errors in javascript console, and it never finishes:

7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
7697270f-d054-4192-acd5-94436d21eb7d:1     Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
model.energy/:1 Uncaught SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at JSON.parse (<anonymous>)
    at poll.onload (solver-230817.js:439:17)
tranberg commented 1 year ago

I can't reproduce this problem (for new solutions). What exactly is your input?

nworbmot commented 1 year ago

On the weekend I added a bugfix, that was particularly causing problems when hydrogen storage was turned off: https://github.com/PyPSA/whobs-server/commit/3e00b6df8fedee73b9f278e65d904422a1f24cae