У меня проблема при попытке отправить уведомление FCM. Я думаю, что это связано с ограничением доступа сервера снаружи. Что мне нужно знать, это какой URL или IP-адрес Firebase-Admin ударил для аутентификации или отправки fcm? Потому что IP в сообщении об ошибке, похоже, всегда менялся.
Credential implementation provided to initializeApp() via the \"credential\" property failed to fetch a valid Google OAuth2 access token with the following error: \"Error fetching access token: Error while making request: connect EHOSTUNREACH 172.217.194.84:443. Error code: EHOSTUNREACH\"."}
(node:18224) UnhandledPromiseRejectionWarning: Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: connect EHOSTUNREACH 172.217.194.84:443. Error code: EHOSTUNREACH".
at FirebaseAppError.FirebaseError [as constructor] (/home/administrator/node/FCMService/node_modules/firebase-admin/lib/utils/error.js:42:28)
at FirebaseAppError.PrefixedFirebaseError [as constructor] (/home/administrator/node/FCMService/node_modules/firebase-admin/lib/utils/error.js:88:28)
at new FirebaseAppError (/home/administrator/node/FCMService/node_modules/firebase-admin/lib/utils/error.js:122:28)
at /home/administrator/node/FCMService/node_modules/firebase-admin/lib/firebase-app.js:121:23
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:18224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:18224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.