skip to Main Content

how to increase Delivery acknowledgment timeouts rabbitMQ version is 3.10.1 – Docker

how to increase Delivery acknowledgment timeouts rabbitMQ version is 3.10.1 rabbitMQ configuration rabbitmq: hostname: 'prod-rabbitmq' image: "rabbitmq:3.10.1-management-alpine" container_name: puppeteer-script-rabbitmq restart: always volumes: - ./data/rabbitmq:/var/lib/rabbitmq - ./data/rabbitmq:/var/log/rabbitmq - ./data/rabbitmq:/var/lib/rabbitmq/mnesia ports: - "5672:5672" - "15672:15672" operation none caused a channel exception precondition_failed:…

VIEW QUESTION

Cat in script in docker

I have a container with node:18-alpine3.14 as base image. I have docker-compose file with command: ["prepare_config.sh","--","npm", "run", "start-p"] in prepare config #!/bin/bash json_data=$(cat <<EOF { "url": "$URL" } EOF ) echo "$json_data"; When I try to run this code I…

VIEW QUESTION

How to access one single collection in a database in MongoDB

When connecting to MongoDB with a Node.JS application using express, how do you connect to just one collection if the database has multiple collections? I have the following MONGODB_URI: MONGODB_URI=mongodb+srv://username:******@cluster0.dayw5.mongodb.net/phonebook?retryWrites=true&w=majority The database "phonebook" has three collections, "numbers", "users" and "people".…

VIEW QUESTION

find mongodb collection document with date String

I have date string like 2022-05-17 And My mongodb collection document like { "_id": { "$oid": "aabbccddeeff" }, "title": "test", "content": "test", "author": "tester", "churchId": { "$oid": "e5eakjshuwb3546" }, "markAsRead": false, "createdAt": { "$date": "2022-05-17T08:18:57.174Z" }, "updatedAt": { "$date": "2022-05-17T08:18:57.174Z"…

VIEW QUESTION

Mongodb – Cast to ObjectId failed for value "6283201d60c794631cd1ba33n" (type string) at path "_id" for model "Post"

I'm working on a social media project and getting this getting when I'm sending like/Unlike post request CastError: Cast to ObjectId failed for value "6283n" (type string) at path "_id" for model "Post" at model.Query.exec (E:social-media-app-mernnode_modulesmongooselibquery.js:4639:21) at model.Query.Query.then (E:social-media-app-mernnode_modulesmongooselibquery.js:4738:15) at…

VIEW QUESTION
Back To Top
Search