-
Notifications
You must be signed in to change notification settings - Fork 26
Product Sync fails on fetch, if a key contain "
in it.
#269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, @markus-mw thanks for reaching us and opening the issue. To understand it better, It looks like the issue coming through where a query and escaping issue, and we will check how we are querying on the ProductSycner. Are you using any query for products like Does this error happen when you change the version from v3.11.0 to v3.12.0? More input would be helpful to understand the problem better. |
I'm using the docker way ;). Don't know how to use any query.
|
@markus-mw Thanks for the reply, |
Right, I'm trying to sync products from one project to another. Products have keys with "-" characters. Here's an anonymized impex example:
|
It's possible that the issue only happens with force parameter. I can't retry it at the moment. |
Hey, @markus-mw I don't know how to reproduce the issue, I tried with a similar product that you have shared with the same parameters but did not face the issue that you had described, it would be useful if you could share more context maybe a whole stack trace of when and why this issue happens in the code, otherwise for us a bit hard to analyze the issue. Thanks in advance 🙏🏽 |
There isn't so much more I could give you. I'm getting for all of the products the same error:
|
@ahmetoz : I found the problem... The error message is misleading... There is a " in the key! Sorry for the inconvenience! |
Hi @markus-mw, no problem even with that I will check the queries created by us in case if this issue could be resolved when the key has " character in it. |
I was not expecting the key would be possible with |
"
in it.
Fixed as part of version 4.0.1 |
I'm trying to sync products (v3.12.0 and v3.11.0) between projects, but I'm getting this error:
{"timestamp":"2021-04-15T07:44:31.713Z","severity":"ERROR","loggerName":"com.commercetools.project.sync.product.ProductSyncer","message":"Error when trying to sync product. Existing key: <<not present>>. Update actions: []","stackHash":"1e0fe24d","stackTrace":"i.s.s.c.ErrorResponseException: detailMessage: Malformed parameter: where: Syntax error while parsing 'where'. Invalid input '-', expected comma or ')' (line 1, column 1194):\
The text was updated successfully, but these errors were encountered: