Report is never generated



  • If not, how do I manage to have a good log of what is happening?



  • Yes, you can take logs from stdout, log files or from the bottom panel in the profile tab
    0_1695967619566_upload-a24c730a-33d9-47e4-9d6b-dfcd861465d5


    As I see from your image, there is a javascript error on your page which you should focus on. It can break the map rendering.

    Page error: TypeError: cannot read properties of undefined
    


  • 0_1695988694937_upload-e6c4472b-08a0-44d4-ba5a-4495ccef90ac

    How do I get full access?

    0_1695988768725_upload-c4ccda9b-4ba9-4797-8a60-dc7d0939bf6a

    I even found the doc, but I didn't understand how to use it



  • I actually don't understand where I apply this config



  • If you want to run with full profiling a particular request, you can use the following button
    0_1696055533056_upload-83738b3f-0120-435d-9504-d9dd5c7a920c

    If you want to switch to "full profiling" all reports using studio, use the following
    0_1696055776628_upload-566eca40-72e6-4508-824c-9457b0bb2433

    0_1696055799484_upload-4c4416d2-ecee-41f1-9ac8-4dac039e1724

    You can also manage the default mode using server config https://jsreport.net/learn/configuration
    So for example open jsreport.config.json and add there a value

    { 
       ...
      "profiler": { "defaultMode": "full" } 
    }
    


  • 0_1696246590898_upload-c80b3a5a-9a48-4824-8270-4b00951cf292
    0_1696246627343_upload-f453494e-2dcc-471f-889a-bde71f47e1a4
    it does not generate this log file



  • this is my configuration file, is there anything I should adjust here?

    {
      "httpPort": 5488,
      "store": {
        "provider": "fs"
      },
      "blobStorage": {
        "provider": "fs"
      },
      "logger": {
        "console": {
          "transport": "console",
          "level": "debug"
        },
        "file": {
          "transport": "file",
          "level": "info",
          "filename": "logs/reporter.log"
        },
        "error": {
          "transport": "file",
          "level": "error",
          "filename": "logs/error.log"
        }
      },
      "trustUserCode": true,
      "reportTimeout": 900000,
      "templatingEngines": {
        "strategy": "dedicated-process"
      },
      "extensions": {
        "child-templates": {
          "parallelLimit": 5
        },
        "authentication": {
          "cookieSession": {},
          "admin": {
            "username": "admin",
            "password": "password"
          },
          "enabled": false
        },
        "sample-template": {
          "createSamples": true
        },
        "scripts": {
          "strategy": "http-server"
        }
      },
      "chrome": {
        "launchOptions": {
          "args": ["--no-sandbox"]
        }
      }
    }


  • it does not generate this log file

    I'm not sure what you are asking. The timeout could occur because you didn't fire the printing trigger. Maybe because of some js errors on your page.



  • my problem is that it doesn't generate the report depending on where I place this component
    0_1696268066544_upload-bee66505-0087-40ff-8f57-23c6b84263a5
    below line 458 it doesn't work
    0_1696268204565_upload-889bbf1d-507e-4631-a2ef-e910dfee55dd
    Now, if placed above, it works normally
    0_1696268300176_upload-1990bb82-1790-4a58-b4c2-4fe23fe4afe4
    In this last print I even commented on the code that came before it and threw the component below others, to show that the problem is where it is called in the code.



  • The component can add a script that breaks the rest of the js on the page...
    Would you be able to provide a playground demo replicating the issue?


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.