medcl/esm

error: invalid character '<' looking for beginning of value

lianmeng0 opened this issue · 1 comments

run commands: ./bin/linux64/esm -s http://local-test-7.com:8080 -x "count_test_20230103" -y "count_test_20230101" -d http://local-test-7.com:8080 --rename="_type:type,age:myage" -u"_doc" -c 5000

error:
[03-16 15:07:40] [INF] [main.go:474,main] start data migration..
error: invalid character '<' looking for beginning of value
Scroll 2495 / 2495 [=============================================================================] 100.00% 0s
Bulk 2495 / 2495 [=============================================================================] 100.00% 0s
[03-16 15:07:40] [INF] [main.go:505,main] data migration finished

Result: There is no response, and there is no corresponding index in the cluster

It looks like the program ran into a parsing error. The "invalid character '<' looking for beginning of value" typically points to an unexpected HTML character when expecting JSON. This might be due to the endpoint returning HTML (like a 404, 401 page) instead of expected JSON data. You might want to check the endpoints and ensure they're returning the correct data format.