IBM Cloud功能

编程入门 行业动态 更新时间:2024-10-28 02:24:29
本文介绍了IBM Cloud功能-无法创建操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法创建IBM Cloud操作.我不知道为什么.

I'm unable to create an IBM Cloud action. I have no idea why.

我在控制台中获得的IBM数据如下:

My IBM data that I get in console is as follows:

API endpoint: api.eu-gb.bluemix Region: eu-gb User: my-name@my-company Account: My Name's Account (12fcae9b137946b8bbfe481448612345) Resource group: Default CF API endpoint: api.eu-gb.bluemix (API version: 2.92.0) Org: my-org Space: dev

对我来说很好.

当我按照文档说此处执行test action时如下:

When I execute the test action as the docs says here as follows:

ibmcloud wsk action invoke whisk.system/utils/echo -p message hello --result

我得到正确的结果:

{ "message": "hello" }

但是我无法创建自己的操作.

该文件夹如下所示:

因此有一个我用

zip -r as24-crawler.zip virtualenv commmon.py __main__.py

现在,当我尝试按照文档中的说明创建操作时,此处与

And now when I try to create an action as the docs says here with

ibmcloud wsk action create my-action-name --kind python:3 as24-crawler.zip

我收到如下错误:

错误:无法创建动作"my-action-name":连接 失败或超时. (HTTP状态码413)

error: Unable to create action 'my-action-name': The connection failed, or timed out. (HTTP status code 413)

知道我在做什么错吗?

更新

文件大吗?我不知道.错误消息尚不清楚,但含义可能是文件很大.

Is the file size to big? I'm not sure. The error message is not clear but the meaning could be that the file to big is.

他们在文档中说该限制为48MB.但是我创建的.zip文件为43.6MB.因此,我认为这不是问题所在.

They say in the docs that the limit is 48MB. But my created .zip file is 43.6MB. Thus I assume that that not the problem is.

推荐答案

我是负责IBM Cloud Functions的人员之一. 我们一直在研究此问题,必须承认这是一个错误(即使zip文件小于记录的48MB限制,也会导致zip文件被拒绝);我们已经在进行修复,以尽快解决此问题.

I am one of the guys responsible for IBM Cloud Functions. We have been looking into this issue and must admit that this is a bug (causing zip files to be rejected even if the are smaller than the documented 48MB limit); we are already working on a fix to get this resolved asap.

同时,您可能需要看一下此处描述的解决方法(它使您可以外包"一些依赖项等): jamesthom.as/blog/2017/08 /04/large-applications-on-openwhisk/

In the meantime you may want to have a look at the workaround (which allows you to "outsource" some of your dependencies etc.) described here: jamesthom.as/blog/2017/08/04/large-applications-on-openwhisk/

我希望这对您有所帮助-如果您有其他疑问或想讨论其他任何问题,请随时直接与我联系(例如,通过Linkedin/Twitter,查看我的个人资料信息).

I hope this helps - feel free to contact me (e.g. via Linkedin/Twitter, see my profile information) directly in case you have further questions or in case you want to discuss anything else.

感谢您发现并报告了此问题,不便之处,敬请谅解.

Thanks for having found and reported this issue and sorry for inconvenience.

更多推荐

IBM Cloud功能

本文发布于:2023-11-22 05:14:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1616106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:功能   IBM   Cloud

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!