Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

orders container erroring on a frequent basis #906

Open
chrisadkin opened this issue Nov 9, 2022 · 1 comment
Open

orders container erroring on a frequent basis #906

chrisadkin opened this issue Nov 9, 2022 · 1 comment

Comments

@chrisadkin
Copy link

The behaviour I expect from the app is that I can add items to my cart and see orders appear, however the orders pod is erroring and when I look at what the frontend pod is doing:

kubectl logs front-end-6585d48b5c-qxb5k -n sock-shop

I get:

Received response: "{\"timestamp\":1667937022064,\"status\":500,\"error\":\"Internal Server Error\",\"exception\":\"org.springframework.data.mongodb.UncategorizedMongoDbException\",\"message\":\"Query failed with error code 352 and error message 'Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal' on server orders-db:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 352 and error message 'Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal' on server orders-db:27017\",\"path\":\"/orders/search/customerId\"}"
/usr/src/app/api/orders/index.js:31
            callback(null, JSON.parse(body)._embedded.customerOrders);
@ritesh-avesha
Copy link

Use an older mongo image. mongo:5.0.11 works fine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants