Google Cloud Platformの、Goocle Cloud Functionsを使って、Pythonの自動実行を行いたいと考えております。
まずは手始めにサンプルでprint('hello world')
を実行するために以下のような関数を組みました。
python
1def sample(): 2 print('hello world')
この状態で、エントリポイントを「sample」、ランタイムを「python3.7」に設定しています。
デプロイ自体はできているのですが、関数をテストしても以下のようなエラーが表示され、結果が何も返ってきません。
Error: function terminated. Recommended action: inspect logs for termination reason. Additional troubleshooting documentation can be found at https://cloud.google.com/functions/docs/troubleshooting#logging Details:
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
調べてもそれらしい情報が出てこず悩んでいます。
アドバイスよろしくお願いいたします。
![guest](/img/icon/icnUserSample.jpg)
回答1件
あなたの回答
tips
プレビュー