Firebase-tools: الإعداد: رمز حالة الويب INVALID_ARGUMENT 400

تم إنشاؤها على ١٥ نوفمبر ٢٠١٨  ·  41تعليقات  ·  مصدر: firebase/firebase-tools

معلومات الإصدار: 6.1.0
معلومات المنصة: OSX

خطوات التكاثر

القرص المضغوط دير
initbase init (استضافة فقط)
حدد المشروع الحالي
خدمة Firebase - استضافة فقط --debug

يدير الموقع محليا.

[2018-11-15T17: 12: 15.331Z] <<< HTTP RESPONSE 400 variant = X-Origin، Referer، Origin، Accept-Encoding، content-type = application / json؛ charset = UTF-8 ، التاريخ = الخميس ، 15 نوفمبر 2018 17:12:15 بتوقيت جرينتش ، الخادم = ESF ، التحكم في ذاكرة التخزين المؤقت = خاص ، حماية x-xss = 1 ؛ الوضع = block ، x-frame-options = SAMEORIGIN ، x-content-type-options = nosniff ، alt-svc = quic = ": 443" ؛ أماه = 2592000 ؛ v = "44،43،39،35" ، نطاقات القبول = لا شيء ، الاتصال = إغلاق
[2018-11-15T17: 12: 15.331Z] <<< كود HTTP RESPONSE BODY = 400 ، message = يحتوي الطلب على وسيطة غير صالحة. ، الحالة = INVALID_ARGUMENT

خطأ: خطأ HTTP: 400 ، يحتوي الطلب على وسيطة غير صالحة.
[2018-11-15T17: 12: 15.532Z] سياق الخطأ: {
"الجسم": {
"خطأ": {
"الكود": 400 ،
"message": "يحتوي الطلب على وسيطة غير صالحة."،
"الحالة": "INVALID_ARGUMENT"
}
} ،
"استجابة": {
"رمز الحالة": 400 ،
"الجسم": {
"خطأ": {
"الكود": 400 ،
"message": "يحتوي الطلب على وسيطة غير صالحة."،
"الحالة": "INVALID_ARGUMENT"
}
} ،
"رؤوس": {
"تختلف": "X-Origin، Referer، Origin، Accept-Encoding"،
"نوع المحتوى": "application / json ؛ charset = UTF-8" ،
"التاريخ": "الخميس ، 15 نوفمبر 2018 17:12:15 بتوقيت جرينتش" ،
"الخادم": "ESF"،
"cache-control": "private"،
"x-xss-protection": "1 ؛ mode = block"،
"خيارات إطار x": "SAMEORIGIN" ،
"x-content-type-options": "nosniff"،
"alt-svc": "quic = \": 443 \ "؛ ma = 2592000؛ v = \" 44،43،39،35 \ ""،
"قبول النطاقات": "لا شيء" ،
"اتصال": "إغلاق"
} ،
"طلب": {
"uri": {
"بروتوكول": "https:" ،
"مائلة": صحيح ،
"المصادقة": فارغة ،
"host": "mobilesdk-pa.googleapis.com" ،
"المنفذ": 443 ،
"hostname": "mobilesdk-pa.googleapis.com" ،
"التجزئة": فارغة ،
"بحث": فارغ ،
"استعلام": فارغ ،
"اسم المسار": "/ v1 / projects / 540833485883 / clients / _: getWebAppConfig" ،
"المسار": "/ v1 / projects / 540833485883 / clients / _: getWebAppConfig" ،
"href": " https://mobilesdk-pa.googleapis.com/v1/projects/540833485883/clients/_ : getWebAppConfig"
} ،
"الطريقة": "GET"
}
}
}

التعليق الأكثر فائدة

شكرًا لكم جميعًا على لفت انتباهنا إلى هذا. نحن نبحث بنشاط في هذه المشكلة الآن.

(رقم التتبع الداخلي: 119615185)

ال 41 كومينتر

كذلك هنا:

معلومات الإصدار: 6.1.0 (تم اختباره أيضًا باستخدام 6.0.0 ، 5.0.0)
معلومات النظام الأساسي: OSX 10.14 macOS Mojave 18A391

$ firebase serve --only hosting,functions --debug

تم اختباره مع مشروع قائم وآخر جديد. نفس الخطأ.

Error: HTTP Error: 400, Request contains an invalid argument.
[2018-11-15T17:40:46.943Z] Error Context: {
  "body": {
    "error": {
      "code": 400,
      "message": "Request contains an invalid argument.",
      "status": "INVALID_ARGUMENT"
    }
  },
  "response": {
    "statusCode": 400,
    "body": {
      "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT"
      }
    },
    "headers": {
      "vary": "X-Origin, Referer, Origin,Accept-Encoding",
      "content-type": "application/json; charset=UTF-8",
      "date": "Thu, 15 Nov 2018 17:40:46 GMT",
      "server": "ESF",
      "cache-control": "private",
      "x-xss-protection": "1; mode=block",
      "x-frame-options": "SAMEORIGIN",
      "x-content-type-options": "nosniff",
      "alt-svc": "quic=\":443\"; ma=2592000; v=\"44,43,39,35\"",
      "accept-ranges": "none",
      "connection": "close"
    },
    "request": {
      "uri": {
        "protocol": "https:",
        "slashes": true,
        "auth": null,
        "host": "mobilesdk-pa.googleapis.com",
        "port": 443,
        "hostname": "mobilesdk-pa.googleapis.com",
        "hash": null,
        "search": null,
        "query": null,
        "pathname": "/v1/projects/128559963708/clients/_:getWebAppConfig",
        "path": "/v1/projects/128559963708/clients/_:getWebAppConfig",
        "href": "https://mobilesdk-pa.googleapis.com/v1/projects/128559963708/clients/_:getWebAppConfig"
      },
      "method": "GET"
    }
  }
}

أواجه نفس المشكلة بالضبط. لقد اختبرت للتو نفس المشروع دون أي تغييرات على جهاز آخر ، وحتى مشروع آخر يعمل بشكل جيد لمدة 3 أشهر ، والمشكلة هي نفسها. نشر المضيف العادي ، ولكن المحلي (_firebase يخدم - فقط الوظائف ، الاستضافة --debug_) فقط توقف عن العمل مع هذا الخطأ anoing ...
لا أعتقد أن المشكلة تكمن في التطبيق (لي أو لك).
كل شيء كان يعمل بشكل جيد منذ حوالي ساعتين!

+1 بالنسبة لي

المشكلة نفسها. أمس كل شيء سار بشكل جيد

[2018-11-15T17:22:20.885Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/xxx/clients/_:getWebAppConfig

[2018-11-15T17:22:21.179Z] <<< HTTP RESPONSE BODY code=400, message=Request contains an invalid argument., status=INVALID_ARGUMENT

+1 بالنسبة لي ولصديق أيضًا ، توقف عن العمل هذا الصباح عندما كان يعمل بشكل جيد أمس. لا أرى أي شيء عنها على https://status.firebase.google.com ، فهل هناك أي شخص من Firebase يمكنه التعليق؟

+1 بالنسبة لي - توقف كل شيء عن العمل فجأة. حاولت الترقية إلى 6.1.0 من 6.0.1 والآن يعطيني firebase serve هذه الرسالة أيضًا:

 functions: Preparing to emulate functions.
⚠  Setup required, please run: firebase setup:emulators:firestore

قمت بتشغيل هذا الأمر بنجاح وعندما أحاول تشغيل firebase serve مرة أخرى أحصل على:

i  functions: Preparing to emulate functions.
✔  firestore: started on http://localhost:8080
⚠  firestore: Error: Invalid or corrupt jarfile /home/alex/.cache/firebase/emulators/cloud-firestore-emulator-v1.2.1.jar

عند البحث عن الأمر الذي قمت بتشغيله للتو ، وجدت هذه الصفحة: https://firebase.google.com/docs/firestore/security/test-rules-emulator

حاولت تشغيل firebase --open-sesame emulators معتقدًا أنها مشكلة في 6.1.0 وحصلت على هذا الخطأ:

Error: Did not recognize preview feature

+1 نفس المشكلة ، بدأت هذا الصباح

+1. يمكن التحقق من حدوث المشكلة عند استخدام firebase serve بدون معلمات في مشروع حالي ، مع إصدارات firebase-tools v6.0.1 و v6.1.0. بالإضافة إلى ذلك ، يخرج الأمر firebase serve بدون إغلاق عملية العقدة بشكل صحيح والتي تفتح منافذ الخدمة ، مما يتطلب قتلًا يدويًا لهذه العملية.

أردت فقط أن أضيف أنني أواجه هذه المشكلة أيضًا. خدمة Firebase كانت تعمل بشكل جيد بالأمس. هذا موجود في كل من Firebase 6.0.1 و 6.1.0

لدي نفس المشكلة بالضبط.

نفس!

نفس. لا يمكنني النشر الآن

أنا أيضا:

image

شكرًا لكم جميعًا على لفت انتباهنا إلى هذا. نحن نبحث بنشاط في هذه المشكلة الآن.

(رقم التتبع الداخلي: 119615185)

Neilpoulin لا يمكنك نشر؟ ما هو إصدار CLI الذي تستخدمه وما هو الخطأ الذي تواجهه؟

عذرًا ، لا يتعلق الأمر مباشرة بأمر نشر قاعدة النار. بنائي
تتضمن العملية خطوة تستحوذ على هذه التكوينات ، وبما أنها فشلت في
لا يمكن نشرها.
يوم الخميس ، 15 نوفمبر 2018 الساعة 12:10 مساءً Michael Bleigh [email protected]
كتب:

Neilpoulin https://github.com/Neilpoulin لا يمكنك نشر؟ ماذا
إصدار CLI الذي تستخدمه وما الخطأ الذي تحصل عليه؟

-
أنت تتلقى هذا لأنه تم ذكرك.

قم بالرد على هذا البريد الإلكتروني مباشرة ، وقم بعرضه على GitHub
https://github.com/firebase/firebase-tools/issues/1015#issuecomment-439155616 ،
أو كتم الخيط
https://github.com/notifications/unsubscribe-auth/AAw-atNnP6wSmeHQke6z4EKIsx1D6r7Yks5uvbw_gaJpZM4Ygu-y
.

إذا كان هذا يساعد شخصًا ما ، فيمكنك تشغيل وظائفك عن طريق فرض المنفذ في هذه الأثناء. هذا لن يساعد في النشر أو الاستضافة. مثال:
تخدم قاعدة sudo firebase - الوظائف فقط - المنفذ = 9000

نفس الموضوع .. تنميتنا متوقفة بسبب هذه المشكلة. لدينا تطبيق زاوي مستضاف مع وظائف Firebase التي تخدم المحتوى. أعتقد أن هذا شيء يتعلق بخدمات Firebase ولكن لوحة معلومات الحالة الخاصة بهم تظهر باللون الأخضر. كان كل شيء يعمل بشكل جيد حتى يوم أمس.

إنه يعمل الآن ، لكن مع وجود تحذيرات ...

⚠  database: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/Users/rodrigodutra/.cache/firebase/emulators/firebase-database-emulator-v3.5.0.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
⚠  database:
...

لم أعد أحصل على الخطأ 400 غير القانوني ولكن هناك خطأ آخر في مكانه الآن ولا يزال غير موجود:

2018-11-15T20:01:14.098Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 15 Nov 2018 20:01:22 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
[2018-11-15T20:01:14.098Z] Starting @google-cloud/functions-emulator
[2018-11-15T20:01:14.115Z] Parsing function triggers
Warning: You're using Node.js v10.13.0 but Google Cloud Functions only supports v6.11.5.
[2018-11-15T20:01:14.238Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 15 Nov 2018 20:01:22 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
i  hosting: Serving hosting files from: public
✔  hosting: Local server: http://localhost:5000
⚠  database: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/home/qkay/.cache/firebase/emulators/firebase-database-emulator-v3.5.0.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
⚠  database: 

error: SUPERVISOR error Error: listen EADDRINUSE 127.0.0.1:5001
    at Server.setupListenHandle [as _listen2] (net.js:1286:14)
    at listenInCluster (net.js:1334:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)
error: supervisorPort (5001) is already in use
error: restPort (5002) is already in use
12:01:15.254 [NamespaceSystem-akka.actor.default-dispatcher-3] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started

12:01:15.408 [main] INFO com.firebase.server.forge.App$ - Listening on port 9000

12:01:15.438 [main] ERROR com.firebase.server.forge.App$ - Error initializing Netty Listener
java.net.BindException: Address already in use
    at java.base/sun.nio.ch.Net.bind0(Native Method)
    at java.base/sun.nio.ch.Net.bind(Net.java:461)
    at java.base/sun.nio.ch.Net.bind(Net.java:453)
    at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:500)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1226)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:495)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:480)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:209)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:355)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:399)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:464)
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
    at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
    at java.base/java.lang.Thread.run(Thread.java:834)

12:01:15.440 [Thread-1] INFO com.firebase.server.forge.App$ - Attempting graceful shutdown.

12:01:15.444 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO akka.actor.CoordinatedShutdown - Starting coordinated shutdown from JVM shutdown hook

12:01:15.448 [Thread-1] INFO com.firebase.server.forge.App$ - Graceful shutdown complete.


Error: database: emulator has exited with code: 1

لم أعد أحصل على الخطأ 400 غير القانوني ولكن هناك خطأ آخر في مكانه الآن ولا يزال غير موجود:

2018-11-15T20:01:14.098Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 15 Nov 2018 20:01:22 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
[2018-11-15T20:01:14.098Z] Starting @google-cloud/functions-emulator
[2018-11-15T20:01:14.115Z] Parsing function triggers
Warning: You're using Node.js v10.13.0 but Google Cloud Functions only supports v6.11.5.
[2018-11-15T20:01:14.238Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 15 Nov 2018 20:01:22 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="44,43,39,35", accept-ranges=none, connection=close
i  hosting: Serving hosting files from: public
✔  hosting: Local server: http://localhost:5000
⚠  database: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/home/qkay/.cache/firebase/emulators/firebase-database-emulator-v3.5.0.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
⚠  database: 

error: SUPERVISOR error Error: listen EADDRINUSE 127.0.0.1:5001
    at Server.setupListenHandle [as _listen2] (net.js:1286:14)
    at listenInCluster (net.js:1334:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)
error: supervisorPort (5001) is already in use
error: restPort (5002) is already in use
12:01:15.254 [NamespaceSystem-akka.actor.default-dispatcher-3] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started

12:01:15.408 [main] INFO com.firebase.server.forge.App$ - Listening on port 9000

12:01:15.438 [main] ERROR com.firebase.server.forge.App$ - Error initializing Netty Listener
java.net.BindException: Address already in use
  at java.base/sun.nio.ch.Net.bind0(Native Method)
  at java.base/sun.nio.ch.Net.bind(Net.java:461)
  at java.base/sun.nio.ch.Net.bind(Net.java:453)
  at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
  at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
  at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:500)
  at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1226)
  at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:495)
  at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:480)
  at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
  at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:209)
  at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:355)
  at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:399)
  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:464)
  at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
  at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
  at java.base/java.lang.Thread.run(Thread.java:834)

12:01:15.440 [Thread-1] INFO com.firebase.server.forge.App$ - Attempting graceful shutdown.

12:01:15.444 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO akka.actor.CoordinatedShutdown - Starting coordinated shutdown from JVM shutdown hook

12:01:15.448 [Thread-1] INFO com.firebase.server.forge.App$ - Graceful shutdown complete.


Error: database: emulator has exited with code: 1

إعادة تشغيل جهاز Mac الخاص بك ...

جرب firebase serve --only hosting أو firebase serve --only functions للتغلب على هذه المشكلة. أبحث في إصلاح لذلك الآن.

كانت لدي المشكلة أيضًا. فقط الآن إعادة تشغيل جهاز الكمبيوتر الخاص بي ويعمل مرة أخرى.

Neilpoulin لا يمكنك نشر؟ ما هو إصدار CLI الذي تستخدمه وما هو الخطأ الذي تواجهه؟

mbleigh أريد أن

على وجه التحديد ، أنا أقوم بتشغيل firebase-tools في العقدة. الأمر الذي فشل هو هذا:

عندما واجهت هذا الخطأ لأول مرة ، كان firbase-tools في الإصدار 6.0.1 . ثم قمت بترقيته إلى 6.1.0 لكن الخطأ كان هو نفسه.

const fbcli = require("firebase-tools");
const opts = {"project": "stage"}; //this is an active alias for my firebase setup
return fbcli.setup
    .web(opts)
    .then(firebaseConfig => { 
        // some config setup stuff for webpack
    }.catch(error => {
        //This gets called rigt away, see error object below
        console.error(error);
    })

حيث يبدو الخطأ الذي تم اكتشافه:

{
  "name": "FirebaseError",
  "message": "HTTP Error: 400, Request contains an invalid argument.",
  "children": [],
  "status": 500,
  "exit": 1,
  "stack": "Error\n    at new FirebaseError (/Users/myrepo/node_modules/firebase-tools/src/error.js:11:16)\n    at module.exports (/Users/myrepo/node_modules/firebase-tools/src/responseToError.js:46:10)\n    at Request._callback (/Users/myrepo/node_modules/firebase-tools/src/api.js:50:25)\n    at Request.self.callback (/Users/myrepo/node_modules/request/request.js:185:22)\n    at emitTwo (events.js:126:13)\n    at Request.emit (events.js:214:7)\n    at Request.<anonymous> (/Users/myrepo/node_modules/request/request.js:1161:10)\n    at emitOne (events.js:116:13)\n    at Request.emit (events.js:211:7)\n    at IncomingMessage.<anonymous> (/Users/myrepo/node_modules/request/request.js:1083:12)",
  "context": {
    "body": {
      "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT"
      }
    },
    "response": {
      "statusCode": 400,
      "body": {
        "error": {
          "code": 400,
          "message": "Request contains an invalid argument.",
          "status": "INVALID_ARGUMENT"
        }
      },
      "headers": {
        "vary": "X-Origin, Referer, Origin,Accept-Encoding",
        "content-type": "application/json; charset=UTF-8",
        "date": "Thu, 15 Nov 2018 18:33:41 GMT",
        "server": "ESF",
        "cache-control": "private",
        "x-xss-protection": "1; mode=block",
        "x-frame-options": "SAMEORIGIN",
        "x-content-type-options": "nosniff",
        "alt-svc": "quic=\":443\"; ma=2592000; v=\"44,43,39,35\"",
        "accept-ranges": "none",
        "connection": "close"
      },
      "request": {
        "uri": {
          "protocol": "https:",
          "slashes": true,
          "auth": null,
          "host": "mobilesdk-pa.googleapis.com",
          "port": 443,
          "hostname": "mobilesdk-pa.googleapis.com",
          "hash": null,
          "search": null,
          "query": null,
          "pathname": "/v1/projects/465836249868/clients/_:getWebAppConfig",
          "path": "/v1/projects/465836249868/clients/_:getWebAppConfig",
          "href": "https://mobilesdk-pa.googleapis.com/v1/projects/465836249868/clients/_:getWebAppConfig"
        },
        "method": "GET"
      }
    }
  }
}

EDIT اعتبارًا من 1:16 مساءً MT ، لم أعد أرى هذا الخطأ

لقد استرجعنا بنية الواجهة الخلفية التي كانت تسبب هذه المشكلة. هل يمكنك تجربة هذا الآن ومعرفة ما إذا كان لا يزال معطلاً؟

عملت من أجلي

+1 يعمل الآن. شكرا

أكد +1 أنه يعمل لدي أيضًا.

+1 مرة أخرى في الأعمال التجارية

ryanpbrewster نعم إنه يعمل مرة أخرى. شكرا لكم! يجب أن يكون لديكم نوع من اختبار e2e لذلك

ملاحظة: لقد نجحت دون أي عمليات إعادة تمهيد ، لكنني وجدت بعض عمليات العقد المعلقة وقتلتها قبل firebase serve

حتى بعد إعادة التشغيل ، لا يزال لدي عمليات جارية من محاولات النشر السابقة. لقد صعدت للتو إلى القمة وقتلتهم يدويًا والآن تعمل أدوات Firebase بشكل جيد بالنسبة لي.

+1 جاهز تمامًا! خذ الكثير.

شكرا لكم جميعا على صبركم. تم حل خطأ الوسيطة غير الصالحة.

تحاول حل المشكلة لمدة 5 ساعات الآن ، في "نشر قاعدة النار".

الوظيفة هي:

exports.makeUppercase = functions.database.ref('/userfollowers/{pushId}/followers')
    .onWrite((change, context) => {
      // Only edit data when it is first created.
      if (change.before.exists()) {
        return null;
      }
      // Exit when the data is deleted.
      if (!change.after.exists()) {
        return null;
      }
      // Grab the current value of what was written to the Realtime Database.
      const original = change.after.val();
      console.log('Uppercasing', context.params.pushId, original);
      const uppercase = original.toUpperCase();
      // You must return a Promise when performing asynchronous tasks inside a Functions such as
      // writing to the Firebase Realtime Database.
      // Setting an "uppercase" sibling in the Realtime Database returns a Promise.
      return change.after.ref.parent.child('uppercase').set(uppercase);
    });

الذي هو مباشرة من الوثائق.

تظهر المحطة:

⚠  functions: failed to create function makeUppercase
HTTP Error: 400, The request has errors

تظهر سجلات وظائف السحابة:
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"INVALID_ARGUMENT"},"authenticationInfo":{"principalEmail":"[email protected]"},"requestMetadata":{"callerIp":"86.120.235.246","callerSuppliedUserAgent":"FirebaseCLI/3.19.0,gzip(gfe),gzip(gfe)","requestAttributes":{"time":"2019-05-14T08:34:18.563Z","auth":{}},"destinationAttributes":{}},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.CreateFunction","authorizationInfo":[{"resource":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}},{"permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}}],"resourceName":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","request":{"location":"projects/parkour-9136c/locations/us-central1","@type":"type.googleapis.com/google.cloud.functions.v1.CreateFunctionRequest","function":{"labels":{"deployment-tool":"cli-firebase"},"entryPoint":"makeUppercase","eventTrigger":{"eventType":"providers/google.firebase.database/eventTypes/ref.write","resource":"projects/_/instances/parkour-9136c/refs/userfollowers/{pushId}/followers","service":"firebaseio.com"},"sourceUploadUrl":"https://storage.googleapis.com/gcf-upload-us-central1-f5adb7fe-7321-4f3c-8fe0-2b2307d26138/5b099ea8-161b-44a7-a3bd-18ce75c64859.zip?GoogleAccessId=service-807137615499@gcf-admin-robot.iam.gserviceaccount.com&Expires=1557824657&Signature=PJKzJsZtHWO1kIkmrSojpdgvb0jRzV91eNC9rZc4j%2FMcoHjILGm36FKCt6qQ2fxeAUu1%2FbrxpagdI7fHmUUUrDdTmnTNISr7FiN61sifUI%2B%2FGnUwo8SguzvrA7kADFqu8nD05FAo7BvG7biUrHmLgISlwo5dTKqcTSmExnaICA1tHYxjz%2Fk0RbmdGkcQ5HdeCKBnW0R7wQPsxswQyvR4cAU4WD2m3PPM9lncVr7pB%2Fh77FboGLi3sq%2FGHyEwUtjfUmyN9d%2FYUpKs48TMsGPknAGIvaFFUWQR23YCDUcrPipq1nW2W1JUdf5nGylYmVEeyF3jLrm%2BsOIcXiZ6LCRhpg%3D%3D","name":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase"}}}

ماهو الحل؟
شكرا

nicoara يرجى فتح مشكلة جديدة بالمعلومات المطلوبة. شكرا لك.

تحاول حل المشكلة لمدة 5 ساعات الآن ، في "نشر قاعدة النار".

الوظيفة هي:

exports.makeUppercase = functions.database.ref('/userfollowers/{pushId}/followers')
    .onWrite((change, context) => {
      // Only edit data when it is first created.
      if (change.before.exists()) {
        return null;
      }
      // Exit when the data is deleted.
      if (!change.after.exists()) {
        return null;
      }
      // Grab the current value of what was written to the Realtime Database.
      const original = change.after.val();
      console.log('Uppercasing', context.params.pushId, original);
      const uppercase = original.toUpperCase();
      // You must return a Promise when performing asynchronous tasks inside a Functions such as
      // writing to the Firebase Realtime Database.
      // Setting an "uppercase" sibling in the Realtime Database returns a Promise.
      return change.after.ref.parent.child('uppercase').set(uppercase);
    });

الذي هو مباشرة من الوثائق.

تظهر المحطة:

⚠  functions: failed to create function makeUppercase
HTTP Error: 400, The request has errors

تظهر سجلات وظائف السحابة:
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"INVALID_ARGUMENT"},"authenticationInfo":{"principalEmail":"[email protected]"},"requestMetadata":{"callerIp":"86.120.235.246","callerSuppliedUserAgent":"FirebaseCLI/3.19.0,gzip(gfe),gzip(gfe)","requestAttributes":{"time":"2019-05-14T08:34:18.563Z","auth":{}},"destinationAttributes":{}},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.CreateFunction","authorizationInfo":[{"resource":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}},{"permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}}],"resourceName":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","request":{"location":"projects/parkour-9136c/locations/us-central1","@type":"type.googleapis.com/google.cloud.functions.v1.CreateFunctionRequest","function":{"labels":{"deployment-tool":"cli-firebase"},"entryPoint":"makeUppercase","eventTrigger":{"eventType":"providers/google.firebase.database/eventTypes/ref.write","resource":"projects/_/instances/parkour-9136c/refs/userfollowers/{pushId}/followers","service":"firebaseio.com"},"sourceUploadUrl":"https://storage.googleapis.com/gcf-upload-us-central1-f5adb7fe-7321-4f3c-8fe0-2b2307d26138/5b099ea8-161b-44a7-a3bd-18ce75c64859.zip?GoogleAccessId=service-807137615499@gcf-admin-robot.iam.gserviceaccount.com&Expires=1557824657&Signature=PJKzJsZtHWO1kIkmrSojpdgvb0jRzV91eNC9rZc4j%2FMcoHjILGm36FKCt6qQ2fxeAUu1%2FbrxpagdI7fHmUUUrDdTmnTNISr7FiN61sifUI%2B%2FGnUwo8SguzvrA7kADFqu8nD05FAo7BvG7biUrHmLgISlwo5dTKqcTSmExnaICA1tHYxjz%2Fk0RbmdGkcQ5HdeCKBnW0R7wQPsxswQyvR4cAU4WD2m3PPM9lncVr7pB%2Fh77FboGLi3sq%2FGHyEwUtjfUmyN9d%2FYUpKs48TMsGPknAGIvaFFUWQR23YCDUcrPipq1nW2W1JUdf5nGylYmVEeyF3jLrm%2BsOIcXiZ6LCRhpg%3D%3D","name":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase"}}}

ماهو الحل؟
شكرا

تحاول حل المشكلة لمدة 5 ساعات الآن ، في "نشر قاعدة النار".

الوظيفة هي:

exports.makeUppercase = functions.database.ref('/userfollowers/{pushId}/followers')
    .onWrite((change, context) => {
      // Only edit data when it is first created.
      if (change.before.exists()) {
        return null;
      }
      // Exit when the data is deleted.
      if (!change.after.exists()) {
        return null;
      }
      // Grab the current value of what was written to the Realtime Database.
      const original = change.after.val();
      console.log('Uppercasing', context.params.pushId, original);
      const uppercase = original.toUpperCase();
      // You must return a Promise when performing asynchronous tasks inside a Functions such as
      // writing to the Firebase Realtime Database.
      // Setting an "uppercase" sibling in the Realtime Database returns a Promise.
      return change.after.ref.parent.child('uppercase').set(uppercase);
    });

الذي هو مباشرة من الوثائق.

تظهر المحطة:

⚠  functions: failed to create function makeUppercase
HTTP Error: 400, The request has errors

تظهر سجلات وظائف السحابة:
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":3,"message":"INVALID_ARGUMENT"},"authenticationInfo":{"principalEmail":"[email protected]"},"requestMetadata":{"callerIp":"86.120.235.246","callerSuppliedUserAgent":"FirebaseCLI/3.19.0,gzip(gfe),gzip(gfe)","requestAttributes":{"time":"2019-05-14T08:34:18.563Z","auth":{}},"destinationAttributes":{}},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.CreateFunction","authorizationInfo":[{"resource":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}},{"permission":"cloudfunctions.functions.create","granted":true,"resourceAttributes":{}}],"resourceName":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase","request":{"location":"projects/parkour-9136c/locations/us-central1","@type":"type.googleapis.com/google.cloud.functions.v1.CreateFunctionRequest","function":{"labels":{"deployment-tool":"cli-firebase"},"entryPoint":"makeUppercase","eventTrigger":{"eventType":"providers/google.firebase.database/eventTypes/ref.write","resource":"projects/_/instances/parkour-9136c/refs/userfollowers/{pushId}/followers","service":"firebaseio.com"},"sourceUploadUrl":"https://storage.googleapis.com/gcf-upload-us-central1-f5adb7fe-7321-4f3c-8fe0-2b2307d26138/5b099ea8-161b-44a7-a3bd-18ce75c64859.zip?GoogleAccessId=service-807137615499@gcf-admin-robot.iam.gserviceaccount.com&Expires=1557824657&Signature=PJKzJsZtHWO1kIkmrSojpdgvb0jRzV91eNC9rZc4j%2FMcoHjILGm36FKCt6qQ2fxeAUu1%2FbrxpagdI7fHmUUUrDdTmnTNISr7FiN61sifUI%2B%2FGnUwo8SguzvrA7kADFqu8nD05FAo7BvG7biUrHmLgISlwo5dTKqcTSmExnaICA1tHYxjz%2Fk0RbmdGkcQ5HdeCKBnW0R7wQPsxswQyvR4cAU4WD2m3PPM9lncVr7pB%2Fh77FboGLi3sq%2FGHyEwUtjfUmyN9d%2FYUpKs48TMsGPknAGIvaFFUWQR23YCDUcrPipq1nW2W1JUdf5nGylYmVEeyF3jLrm%2BsOIcXiZ6LCRhpg%3D%3D","name":"projects/parkour-9136c/locations/us-central1/functions/makeUppercase"}}}

ماهو الحل؟
شكرا

حاول إضافة مستند في نهاية مسار مرجع ديسيبل. على سبيل المثال / userfollowers / {pushId} / Follower / {follower}

bkendall لقد بدأت موضوعًا جديدًا: https://github.com/firebase/firebase-tools/issues/1317

قمت بتشغيل "firebase publish --debug" ووجدت رسالة جديدة.

[2019-05-20T14:43:23.863Z] <<< HTTP RESPONSE 400 vary=X-Origin, Referer, Origin,Accept-Encoding, content-type=application/json; charset=UTF-8, date=Mon, 20 May 2019 14:43:23 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="46,44,43,39", accept-ranges=none, connection=close
[2019-05-20T14:43:23.863Z] <<< HTTP RESPONSE BODY code=400, message=The request has errors, status=INVALID_ARGUMENT, details=[@type=type.googleapis.com/google.rpc.BadRequest, fieldViolations=[field=runtime, description=Runtime field cannot be empty.]]
⚠  functions: failed to create function makeUppercase
HTTP Error: 400, The request has errors

soclbz التغيير لا يحدث فرقا.

شكرا لك

الحصول على نفس _ "لا يمكن ترك حقل وقت التشغيل فارغًا" _ الخطأ:

[2019-06-06T18: 51: 31.127Z] <<< HTTP RESPONSE 400 variant = X-Origin، Referer، Origin، Accept-Encoding، content-type = application / json؛ charset = UTF-8 ، التاريخ = الخميس ، 06 يونيو 2019 18:51:30 بتوقيت جرينتش ، الخادم = ESF ، التحكم في ذاكرة التخزين المؤقت = خاص ، حماية x-xss = 0 ، x-frame-options = SAMEORIGIN ، x-content- نوع-
الخيارات = nosniff، alt-svc = quic = ": 443" ؛ أماه = 2592000 ؛ v = "46،44،43،39" ، نطاقات القبول = لا شيء ، الاتصال = إغلاق
[2019-06-06T18: 51: 31.128Z] <<< كود جسم استجابة HTTP = 400 ، message = يحتوي الطلب على أخطاء ، الحالة = INVALID_ARGUMENT ، تفاصيل = [@ type = type.googleapis.com / google.rpc.BadRequest ، fieldViolations = [field = runtime، description = حقل وقت التشغيل لا يمكن أن يكون فارغًا.]]

يحدث هذا أيضًا للمشاريع التي تم إنشاؤها حديثًا باستخدام npx firebase init عند محاولة نشر وظيفة مثال hello world.

stpch هل تستخدم نسخة قديمة من CLI؟ الرجاء إلقاء نظرة على # 1317

stpch هل تستخدم نسخة قديمة من CLI؟ الرجاء إلقاء نظرة على # 1317

أنا أستخدم أحدث الإصدارات:

سيئًا ، كان هناك إصدار قديم من firebase-tools تم تثبيته من خلال yarn والذي كان له الأسبقية على npx . إنه يعمل الآن بأحدث إصدار.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات