uncaught syntaxerror - unexpected token 's'

Hi ,

I am receiving input with escape characters, such as 'sabc/"ydgd', where the double quote (") is part of the input. However, when using the data manager for the API call, I encounter a syntax error: 'Uncaught SyntaxError: Unexpected token 's'. This error message suggests that my form submission is producing an invalid JSON format.


screen.png


1 Reply

AR Aishwarya Rameshbabu Syncfusion Team September 23, 2024 03:52 PM UTC

Hi Adarsh ,


Greetings from Syncfusion support.


After reviewing your query, we have observed that you are facing a script issue when receiving an input containing a double quote character ("). To address this issue effectively, we require some additional information to better understand the context in which this problem occurs. Please provide the following details:


1. Describe the exact scenario in which the script issue has been reproduced.

2. Specify from which component the input is received.

3. Since you mentioned using the DataManager for API calls, kindly share the code lines defining the DataManager.

4. Provide the code lines of the Syncfusion component that you are utilizing and specify the package.

5. Share a simple sample that replicates the issue.

6. Provide a video demonstration showing the issue replication.


Providing the above details will greatly assist in understanding the replication of the issue and to provide an optimal solution.


Regards

Aishwarya R


Loader.
Up arrow icon