IBM Cloud功能-无法创建操作 [英] IBM Cloud functions - Unable to create an action

查看:114
本文介绍了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:      https://api.eu-gb.bluemix.net
Region:            eu-gb
User:              my-name@my-company.com
Account:           My Name's Account (12fcae9b137946b8bbfe481448612345)
Resource group:    Default
CF API endpoint:   https://api.eu-gb.bluemix.net (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.

同时,您可能需要看一下此处描述的解决方法(它使您可以外包"一些依赖项等): http://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: http://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功能-无法创建操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆