LoginSignup
2
1

More than 3 years have passed since last update.

Changing from an HTTPS function to an background triggered function is not allowed.

Last updated at Posted at 2021-04-27

HTTPSリクエストのファンクションだったものをスケジュールに変更するとエラーが出る時の解決方法

exports.XXX = functions.https.onRequest((request, response) => {

のようにhttpsのリクエストを受けるファンクションとして定義してdeployしたあとに

exports.XXX = functions.pubsub
.schedule(スケジュール)
〜

のようにスケジューリングされたファンクションに変更してdeployしようとすると以下のエラーが出る

Changing from an HTTPS function to an background triggered function is not allowed. Please delete your function and create a new one instead.

■解決方法

対象のファンクションをこのように一度削除して再度deployすればOKです。
firebase functions:delete XXX

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1