اذهب إلى المحتوى
  • 0

ما حل هذا الايرور heroku

Ahmed Sawy

السؤال

هذا هو الكود فى هذه الريبو 

https://github.com/ahmedsawy1/RN-CLI-AxiosBooksApp/tree/master/backend

يظهر لى هذا الايرور فى heroku .. فما الحل

2021-06-01T22:41:39.853091+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=my-node-app-4324.herokuapp.com request_id=4be7e46d-6e0a-4f26-bf65-7acbd6560c27 fwd="41.238.16.137" dyno=web.1 connect=4ms service=7ms status=404 bytes=394 protocol=https
2021-06-01T22:42:01.596042+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/books" host=my-node-app-4324.herokuapp.com request_id=6eee6d47-2c2c-4f02-8e30-cd93fcd47d4d fwd="41.238.16.137" dyno=web.1 connect=0ms service=10037ms status=503 bytes=0 protocol=https
2021-06-01T22:42:01.580796+00:00 app[web.1]: /app/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185
2021-06-01T22:42:01.580806+00:00 app[web.1]: callback(new MongooseError(message));
2021-06-01T22:42:01.580806+00:00 app[web.1]: ^
2021-06-01T22:42:01.580807+00:00 app[web.1]:
2021-06-01T22:42:01.580808+00:00 app[web.1]: MongooseError: Operation `books.find()` buffering timed out after 10000ms
2021-06-01T22:42:01.580809+00:00 app[web.1]: at Timeout.<anonymous> (/app/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:20)
2021-06-01T22:42:01.580809+00:00 app[web.1]: at listOnTimeout (node:internal/timers:557:17)
2021-06-01T22:42:01.580809+00:00 app[web.1]: at processTimers (node:internal/timers:500:7)
2021-06-01T22:42:01.599913+00:00 app[web.1]: [nodemon] app crashed - waiting for file changes before starting...

 

heroku.thumb.png.f65f861055dcabe08c42729b7bed0dfc.png

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 0
بتاريخ 6 ساعات قال Ahmed Sawy:

جربته مرات عديدة دون جدوى .. هل يمكن ان يكون السبب اننى استخدم get من monge db ؟؟ 

أرجوا أرفاق ما يظهر من مشاكل هنا ؟

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0

تأكد من تنزيل الحزم أو إعادة تثبيتها عن طريق الأمر التالي

npm install
npm start

أو تأكد من تنزيل nodemon عن طريق الأمر التالي 

npm install -g nodemon

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 5 دقائق مضت قال بلال زيادة:

تأكد من تنزيل الحزم أو إعادة تثبيتها عن طريق الأمر التالي


npm install
npm start

أو تأكد من تنزيل nodemon عن طريق الأمر التالي 


npm install -g nodemon

 

مشروع النود يعمل بشكل صحيح وليس به اى اخطاء ولكن عنمدما ارفعه على هيروكو فان الاخطاء تظهر .. ومع ذلك ساقوم بما قلت 

بتاريخ 25 دقائق مضت قال Ahmed Sawy:

مشروع النود يعمل بشكل صحيح وليس به اى اخطاء ولكن عنمدما ارفعه على هيروكو فان الاخطاء تظهر .. ومع ذلك ساقوم بما قلت 

 

بتاريخ 31 دقائق مضت قال بلال زيادة:

تأكد من تنزيل الحزم أو إعادة تثبيتها عن طريق الأمر التالي


npm install
npm start

أو تأكد من تنزيل nodemon عن طريق الأمر التالي 


npm install -g nodemon

 

مازال الايرور يظهر 

 

2021-06-02T12:57:47.327169+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/books" host=my-node-app-4324.herokuapp.com request_id=954ff3f9-f35c-4350-8bb2-7b78977ab525 fwd="41.238.16.137" dyno=web.1 connect=1ms service=10019ms status=503 bytes=0 protocol=https
2021-06-02T12:57:47.327254+00:00 app[web.1]: [nodemon] app crashed - waiting for file changes before starting...
2021-06-02T12:58:59.416489+00:00 heroku[router]: at=error code=H21 desc="Backend connection refused" method=GET path="/books" host=my-node-app-4324.herokuapp.com request_id=5dec3064-a38f-4206-8013-b95a30781af0 fwd="41.238.16.137" dyno=web.1 connect=0ms service= status=503 bytes= protocol=https

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ On 2‏/6‏/2021 at 15:34 قال Ahmed Sawy:

مشروع النود يعمل بشكل صحيح وليس به اى اخطاء ولكن عنمدما ارفعه على هيروكو فان الاخطاء تظهر .. ومع ذلك ساقوم بما قلت 

مازال الايرور يظهر 


2021-06-02T12:57:47.327169+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/books" host=my-node-app-4324.herokuapp.com request_id=954ff3f9-f35c-4350-8bb2-7b78977ab525 fwd="41.238.16.137" dyno=web.1 connect=1ms service=10019ms status=503 bytes=0 protocol=https
2021-06-02T12:57:47.327254+00:00 app[web.1]: [nodemon] app crashed - waiting for file changes before starting...
2021-06-02T12:58:59.416489+00:00 heroku[router]: at=error code=H21 desc="Backend connection refused" method=GET path="/books" host=my-node-app-4324.herokuapp.com request_id=5dec3064-a38f-4206-8013-b95a30781af0 fwd="41.238.16.137" dyno=web.1 connect=0ms service= status=503 bytes= protocol=https

 

هل يمكنك تجربة رفعه مرة أخرى و تأكد من خطوات رفع مشروع node.js إلى heroku, يرجى التأكد من الخطوات من هنا

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 12 ساعات قال بلال زيادة:

هل يمكنك تجربة رفعه مرة أخرى و تأكد من خطوات رفع مشروع node.js إلى heroku, يرجى التأكد من الخطوات من هنا

جربته مرات عديدة دون جدوى .. هل يمكن ان يكون السبب اننى استخدم get من monge db ؟؟ 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

  • 0
بتاريخ 12 ساعات قال بلال زيادة:

أرجوا أرفاق ما يظهر من مشاكل هنا ؟

 

هذا ما يظهر .. مصور 
err.thumb.png.f84f3863872ef17006ef25b99dcebcbd.png


هذا ما يظهر .. منسوخ 

 

2021-06-03T16:39:12.030910+00:00 heroku[web.1]: Idling
2021-06-03T16:39:12.062660+00:00 heroku[web.1]: State changed from up to down
2021-06-03T16:39:12.943827+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2021-06-03T16:39:13.089734+00:00 heroku[web.1]: Process exited with status 143
2021-06-05T15:31:54.270590+00:00 heroku[web.1]: Unidling
2021-06-05T15:31:54.283209+00:00 heroku[web.1]: State changed from down to starting
2021-06-05T15:31:57.275765+00:00 heroku[web.1]: Starting process with command `npm start`
2021-06-05T15:32:00.370303+00:00 app[web.1]:
2021-06-05T15:32:00.370322+00:00 app[web.1]: > axios-books-app@1.0.0 start
2021-06-05T15:32:00.370322+00:00 app[web.1]: > node index.js
2021-06-05T15:32:00.370323+00:00 app[web.1]:
2021-06-05T15:32:01.242301+00:00 app[web.1]: Connected
2021-06-05T15:32:01.451991+00:00 heroku[web.1]: State changed from starting to up
2021-06-05T15:32:03.363328+00:00 heroku[router]: at=info method=GET path="/" host=a3-6.herokuapp.com request_id=d65c4840-fc38-4049-b330-68a6e2ce7340 fwd="156.207.238.202" dyno=web.1 connect=0ms service=25ms status=200 bytes=203 protocol=https
2021-06-05T15:32:04.154087+00:00 heroku[router]: at=info method=GET path="/" host=a3-6.herokuapp.com request_id=07e2aebf-f913-4a69-984f-8bcd1bf924bc fwd="156.207.238.202" dyno=web.1 connect=1ms service=4ms status=304 bytes=149 protocol=https
2021-06-05T15:32:04.545811+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=a3-6.herokuapp.com request_id=e99864e2-5c71-46f4-9c1f-5c43296ff906 fwd="156.207.238.202" dyno=web.1 connect=1ms service=7ms status=404 bytes=394 protocol=https
2021-06-05T15:32:04.762414+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=a3-6.herokuapp.com request_id=821da871-5c14-4aa1-8184-b971971a53e8 fwd="156.207.238.202" dyno=web.1 connect=0ms service=2ms status=404 bytes=394 protocol=https
2021-06-05T15:32:19.603378+00:00 app[web.1]: /app/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185
2021-06-05T15:32:19.603406+00:00 app[web.1]: callback(new MongooseError(message));
2021-06-05T15:32:19.603407+00:00 app[web.1]: ^
2021-06-05T15:32:19.603407+00:00 app[web.1]:
2021-06-05T15:32:19.603407+00:00 app[web.1]: MongooseError: Operation `books.find()` buffering timed out after 10000ms
2021-06-05T15:32:19.603408+00:00 app[web.1]: at Timeout.<anonymous> (/app/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:20)
2021-06-05T15:32:19.603408+00:00 app[web.1]: at listOnTimeout (node:internal/timers:557:17)
2021-06-05T15:32:19.603409+00:00 app[web.1]: at processTimers (node:internal/timers:500:7)
2021-06-05T15:32:19.618861+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/books" host=a3-6.herokuapp.com request_id=5e207a6c-3946-4d33-afdd-86b70bd6e5c1 fwd="156.207.238.202" dyno=web.1 connect=0ms service=10032ms status=503 bytes=0 protocol=https
2021-06-05T15:32:19.686412+00:00 heroku[web.1]: Process exited with status 1
2021-06-05T15:32:19.761781+00:00 heroku[web.1]: State changed from up to crashed
2021-06-05T15:32:19.785228+00:00 heroku[web.1]: State changed from crashed to starting
2021-06-05T15:32:22.112156+00:00 heroku[web.1]: Starting process with command `npm start`
2021-06-05T15:32:24.688506+00:00 app[web.1]:
2021-06-05T15:32:24.688524+00:00 app[web.1]: > axios-books-app@1.0.0 start
2021-06-05T15:32:24.688524+00:00 app[web.1]: > node index.js
2021-06-05T15:32:24.688525+00:00 app[web.1]:
2021-06-05T15:32:25.294213+00:00 app[web.1]: Connected
2021-06-05T15:32:25.810121+00:00 heroku[web.1]: State changed from starting to up
2021-06-05T15:32:55.350002+00:00 app[web.1]: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/
2021-06-05T15:32:55.350033+00:00 app[web.1]: at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:846:32)
2021-06-05T15:32:55.350034+00:00 app[web.1]: at /app/node_modules/mongoose/lib/index.js:351:10
2021-06-05T15:32:55.350035+00:00 app[web.1]: at /app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
2021-06-05T15:32:55.350035+00:00 app[web.1]: at new Promise (<anonymous>)
2021-06-05T15:32:55.350036+00:00 app[web.1]: at promiseOrCallback (/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
2021-06-05T15:32:55.350036+00:00 app[web.1]: at Mongoose._promiseOrCallback (/app/node_modules/mongoose/lib/index.js:1149:10)
2021-06-05T15:32:55.350037+00:00 app[web.1]: at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:350:20)
2021-06-05T15:32:55.350037+00:00 app[web.1]: at Object.<anonymous> (/app/index.js:13:4)
2021-06-05T15:32:55.350038+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1092:14)
2021-06-05T15:32:55.350038+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
2021-06-05T15:32:55.350039+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:972:32)
2021-06-05T15:32:55.350039+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:813:14)
2021-06-05T15:32:55.350039+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
2021-06-05T15:32:55.350040+00:00 app[web.1]: at node:internal/main/run_main_module:17:47 {
2021-06-05T15:32:55.350040+00:00 app[web.1]: reason: TopologyDescription {
2021-06-05T15:32:55.350040+00:00 app[web.1]: type: 'ReplicaSetNoPrimary',
2021-06-05T15:32:55.350041+00:00 app[web.1]: setName: null,
2021-06-05T15:32:55.350041+00:00 app[web.1]: maxSetVersion: null,
2021-06-05T15:32:55.350041+00:00 app[web.1]: maxElectionId: null,
2021-06-05T15:32:55.350041+00:00 app[web.1]: servers: Map(3) {
2021-06-05T15:32:55.350041+00:00 app[web.1]: 'cluster0-shard-00-00.f0bzw.mongodb.net:27017' => [ServerDescription],
2021-06-05T15:32:55.350042+00:00 app[web.1]: 'cluster0-shard-00-01.f0bzw.mongodb.net:27017' => [ServerDescription],
2021-06-05T15:32:55.350042+00:00 app[web.1]: 'cluster0-shard-00-02.f0bzw.mongodb.net:27017' => [ServerDescription]
2021-06-05T15:32:55.350042+00:00 app[web.1]: },
2021-06-05T15:32:55.350043+00:00 app[web.1]: stale: false,
2021-06-05T15:32:55.350043+00:00 app[web.1]: compatible: true,
2021-06-05T15:32:55.350043+00:00 app[web.1]: compatibilityError: null,
2021-06-05T15:32:55.350044+00:00 app[web.1]: logicalSessionTimeoutMinutes: null,
2021-06-05T15:32:55.350044+00:00 app[web.1]: heartbeatFrequencyMS: 10000,
2021-06-05T15:32:55.350044+00:00 app[web.1]: localThresholdMS: 15,
2021-06-05T15:32:55.350044+00:00 app[web.1]: commonWireVersion: null
2021-06-05T15:32:55.350045+00:00 app[web.1]: }
2021-06-05T15:32:55.350045+00:00 app[web.1]: }

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...