Report is never generated



  • I need to wait for the google map to be drawn, so I started using waiting for printing trigger

    If I test it separately or put the maps at the beginning of the html, it works great, but the maps must be inserted at the end of the page, which doesn't work.

    0_1695912455204_upload-0f37df87-eb67-41a4-be3b-a0091969592f

    it is locked as shown in the image above

    I would like to know if anyone has any idea why it doesn't generate the report if placed at the end of the page.

    Note: my report must have more than 3k lines, if I place a loop that generates the map between the first 0-300 lines, everything works as it should, if placed after these +/-300 lines it simply gets stuck.



  • There are no errors in the profile logs?



  • 0_1695932379000_upload-4daf1214-7af8-44e1-8fbe-aa34a31dba44 0_1695932109971_upload-102ae450-8899-474b-b4a6-203f0e854856

    would it be this?



  • 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.