SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

Error with 0.21 version on sqlpage.fetch function

Open ThierryM opened this issue 1 year ago • 2 comments

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

ThierryM avatar May 20 '24 18:05 ThierryM

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 !

DSMejantel avatar May 20 '24 20:05 DSMejantel

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

ThierryM avatar May 21 '24 12:05 ThierryM