cant import catalog #20
Comments
Hi @AhmadManzoor, It looks like Protobuf raises that error if the JSON has errors. https://github.com/protocolbuffers/protobuf/blob/a530dbe50c8295bf7b19e245b9be8525e235e6cb/src/google/protobuf/util/internal/json_stream_parser.cc#L221-L232
Can you double-check that the JSON is exactly as you've shown in your post?
Could you also share the code you are using to import the catalog? |
thank you so much @busunkim96 for your quick response |
Ah I see. Thank you for the clarification. I've opened an issue on that documentation page. I'll let you know once I hear back from the Recommendations AI team. Googlers see 179488637. |
So any suggestion how can i upload the catalog now? as i have deadline in few days. |
Apologies, I'm not familiar with this product so I won't be able to offer further assistance until I hear back from the API team. If you have a support contract with Google, please do file a ticket https://cloud.google.com/support. |
Now i tried with valid json. i cheked it via jsonlint.com but still it is giving this error
|
Hi @AhmadManzoor , As a test, could you try changing from
to
|
Closed via #22 |
i am trying to import my catalog ( which i uploaded to bucket as json format) but it gives error
{"code":3,"message":"Parsing terminated before end of input.
i copied the data from sample json as given here
but the error is same.
here is my json which i copied from reference website
{ "id": "1234", "category_hierarchies": [ { "categories": [ "athletic wear", "shoes" ] } ], "title": "ABC sneakers" }}
{ "id": "5839", "category_hierarchies": [ { "categories": [ "casual attire", "t-shirts" ] } ], "title": "Crew t-shirt" }}
and here is the error
{"code":3,"message":"Parsing terminated before end of input.\n: \"ABC sneakers\" }}\n ^","details":[{"@type":"type.googleapis.com/google.protobuf.Struct","value":{"line_number":1}}]} {"code":3,"message":"Parsing terminated before end of input.\n: \"Crew t-shirt\" }}\n ^","details":[{"@type":"type.googleapis.com/google.protobuf.Struct","value":{"line_number":2}}]}
i will really appreciate any help
The text was updated successfully, but these errors were encountered: