lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
883 stars 64 forks source link

Error with 0.21 version on sqlpage.fetch function #325

Open ThierryM opened 1 month ago

ThierryM commented 1 month ago

Hi, With "Ecole Inclusive" (SQLite database) running under SQLPage 0.21, I have a problem when I want to locate a school with the button "Ajouter depuis une carte" : Sélection_641 Here the error message: Failed to set the $api_results variable to StmtWithParams { query: "SELECT CAST(? AS TEXT)", params: [FunctionCall(SqlPageFunctionCall { function: fetch, arguments: [GetOrPost("url")] })] } Error in function call sqlpage.fetch($url). Expected sqlpage.fetch(http_request) Parameter http_request: Unexpected NULL value Regard

DSMejantel commented 1 month ago

Sorry, but the problem was in my code. I have found the error, the variable was not correctly send to the other page who display the map. The 0.21 version is not guilty !

ThierryM commented 1 month ago

I confirm : issue resolved in École Inclusive. SQLPage not guilty ;-).