400 'Validation Error' when attempting to get data

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

400 error saying ‘Validation error’ and ‘Unexpected token ILLEGAL’ when attempting to get data from our movies schema.

Expected behavior

No error.

Minimal reproduction of the problem

Most every call to the “movies” schema seems to reproduce the issue:

Environment

App Name: name-that-movie-2-cms

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Version: Whatever the cloud is running

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Can you check the scripts for your schema?

Hi Sebasitan, thanks for the quick reply.

The only script in that schema is this query script:

.\sq.exe content import File.csv --fields=text

Could that be causing the issue? I didn’t write that script myself so I’m not sure of its purpose. I’ll talk with my team about replacing or deleting it if that’s likely to be the problem.

Yes, this is not a valid javascript. I have not added it.

Thanks, talked with my team and it looks like removing that worked.

1 Like