funcraft icon indicating copy to clipboard operation
funcraft copied to clipboard

fun deploy failed with 400

Open siutin opened this issue 4 years ago • 3 comments

Does anyone know how to fix this?

Waiting for service demo-springboot-service to be deployed...
	make sure role 'aliyunfcgeneratedrole-cn-beijing-demo-springboot-service' is exist
	role 'aliyunfcgeneratedrole-cn-beijing-demo-springboot-service' is already exist
	attaching policies ["AliyunOSSFullAccess"] to role: aliyunfcgeneratedrole-cn-beijing-demo-springboot-service
	attached policies ["AliyunOSSFullAccess"] to role: aliyunfcgeneratedrole-cn-beijing-demo-springboot-service
	Waiting for function demo-springboot to be deployed...
		Waiting for packaging function demo-springboot code...
		The function demo-springboot has been packaged.
PUT /services/demo-springboot-service/functions/demo-springboot failed with 400. requestid: 3aeaccdf-2121-405b-9aaa-c6c5a9d6eee4, message: Bad data in request body.

siutin avatar Apr 26 '20 17:04 siutin

try to use 'fun config' to increate timeout config value

tanhe123 avatar May 06 '20 07:05 tanhe123

I have increased the timeout to 60000, still got the same error. The upload stopped at around 80%, total size of the zip is 32MB.


Apparently, the error is related with uploading. After I delete the biggest file, it's OK to deploy. There are two time outs, one in 'fun config', another in 'template.yml'. Not sure which one affect the uploading, the default max timeout is only 600.

threefoldo avatar Jun 02 '20 17:06 threefoldo

going through the same error here while deploying to ap1 (jp) in china mainland, and i still dont understand why the whole project is uploaded even though i have just modified one line of code 😅

APassbyDreg avatar Dec 08 '20 17:12 APassbyDreg