Unexpected token in expression

Hello,

Has anyone encountered this kind of issue?

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.

Any advice?

Thank you.

Hello,
Where (what action/options/setup) and when exactly do you get this error?

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.

image

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?

So does the issue still there or not?

I'm not sure I understand your question about the query manager.

There is no issue currently. But it is this way for the past days. I am always trying to rename the GET variables to a different name.

Hi @Teodor, just got the error again:

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(&quot;Error loading data for Project Deductions. &quot; + 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:
image

What do you think is the issue here?

Thank you.

Do you mean that on this same page the error sometimes appears and sometimes not?
Can you provide a link to your page, where I can test this?

Hi @Teodor, it is not hosted publicly and it is on my laptop. Will you need the whole project?

Unfortunately that won't really help me.
So:

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?

jtlyk, I am also having the same errors on another page. Regardless of the POST variable name, it always say the same for a letter in the variable.

Do you have any idea why would it return that error from a POST variable name on one of its letters?