It was working before and in the last 3 days, it is returning this error intermittently.
Sometimes it says “Unexpected token t in express”.
I have also tried to rename the GET variable. Before it has an underscore ( _ ).
I can’t keep on renaming the GET variables as this will need some changes on the page.
Hi @Teodor, it is a simple query on page load. The default serverconnect with specified GET variables the same as the variables I set in Server Actions Steps.
I have renamed the GET variables as seen on the screenshot and haven’t encountered any errors yet.
One question though, for a simple query that doesn’t require any sorting or filtering (I just need the records to show on a table), do I need to use a Query Manager? I am not currently using it and just put in the values from my Cookie Manager to the ServerConnect variables. Is the issue related to that?
Here is my server connect component with the cookie manager: <dmx-cookie-manager id="smqmcookmgr"></dmx-cookie-manager> <dmx-serverconnect id="svrconn_read_deduproj" url="../dmxConnect/api/sitepayroll/payroll_new_update/read/payrtrac_deduproj.aspx" dmx-on:error="notifies1.danger("Error loading data for Project Deductions. " + lastError.response)" dmx-param:qptpdmptid="smqmcookmgr.data.ptid" dmx-param:qptpdmprjid="smqmcookmgr.data.prjid"></dmx-serverconnect>
Here are my Action Steps for the server connect component:
Yes. It is intermittent. If you refresh the page it will load successfully. Why do you think it will have an unexpected token error on a GET variable name?