【问题标题】:upload image from expo RN project to google cloud functions将图像从 expo RN 项目上传到谷歌云功能
【发布时间】:2018-06-08 04:53:29
【问题描述】:

https://medium.com/@wcandillon/uploading-images-to-firebase-with-expo-a913c9f8e98d

我一直在关注这篇关于如何使用 expo 将图像上传到具有谷歌存储的谷歌云功能的精彩帖子,但我一直收到此错误:

TypeError: handler is not a function
at cloudFunction (/user_code/node_modules/firebase-functions/lib/providers/https.js:26:41)
at /var/tmp/worker/worker.js:671:7
at /var/tmp/worker/worker.js:655:9
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)

感谢任何帮助。我没有开发快速应用程序的经验,但如果我不能很快找到答案,我可能需要这样做。

【问题讨论】:

  • 请出示您的代码以重现问题。

标签: firebase react-native google-cloud-platform firebase-storage expo


【解决方案1】:

感谢您的回复。我发现了这个问题。我没有在代码上使用 module.exports 将其导出到索引文件中,在该索引文件中注册了我所有的谷歌云功能,即下面的代码

exports.api = functions.https.onRequest(api);

感谢您的回复。

【讨论】:

    猜你喜欢
    • 2021-10-28
    • 2020-05-18
    • 2015-02-28
    • 1970-01-01
    • 1970-01-01
    • 2018-07-11
    • 1970-01-01
    • 2018-12-11
    • 2021-01-25
    相关资源
    最近更新 更多