You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
I noticed that serverless 1.26.0 released and merged
#4665
, so I hope I can deploy to cn-north-1 but still have some problems and the biggest problem is
{"Message":null}
responsed when I call the api.
What went wrong?
When I click this link
https://jnueoirgfe.execute-api.cn-north-1.amazonaws.com.cn/dev/test
I hope outputs is
{"name":"chun"}
but is
{"Message":null}
and no logs in cloudwatch, only log group created. Then I give the lambda role admin permission still not work.
What did you expect should have happened?
When click the link above should response
{"name":"chun"}
What was the config you used?
service: api-ssyer
frameworkVersion: ">=1.1.0 <2.0.0"
plugins:
serverless-offline
provider:
name: aws
runtime: nodejs6.10
stage: dev # Set the default stage used. Default is dev
region: cn-north-1 # cn-north-1 #us-west-2 # Overwrite the default region used. Default is us-east-1
memorySize: 512 # Overwrite the default memory size. Default is 1024
timeout: 10 # The default is 6 seconds. Note: API Gateway current maximum is 30 seconds
functions:
test:
handler: test.index
events:
- http:
path: test
method: get
What stacktrace or error message from your provider did you see?
No error since cloudwatch no logs
Operating System
:
Manjaro Linux and all software up to date
*** Other Infomation***
I noticed when call lambda by browser there is no logs in cloud watch but test at lambda console there is logs. And all api call return
{"Message":null}
It seems that api gateway no call the lambda but just return
{"Message":null}
Since our company want to release this app within next weekend , so if any one known how to fix this please tell me, other region of aws is slow in China every api call may take almost 1-2 seconds.
The following API Gateway features are either unavailable in the Beijing and Ningxia Regions or require an ICP license:
API Gateway serves unauthenticated API requests only if the API owner’s Amazon AWS account is associated with a valid ICP license. As a result, creating an API using a Lambda authorizer or no authorizer requires an ICP license.
You can configure an API using a custom authorizer or no authorizer, but the API can only be accessed if your Amazon AWS account is associated with an ICP license.
You cannot use Alias A records for custom domain names. You must create a CNAME that points to the regional custom domain endpoint.
I encountered the typical issue of receiving a 403 error when accessing the HTTP gateway in the cn-northwest-1 region where I have deployed. Initially, I thought that adding authentication verification to the HTTP requests was necessary, so I spent two days troubleshooting without success. Eventually, I reached out to customer support for assistance, and received an email with the resolution after one hour. At this point, I was able to use the HTTP gateway without the need for authentication.
我部署在中国的区域cn-northwest-1,我也遇到了通常http gateway访问返回403的问题,起初我以为需要为http加入auth验证,折腾2天无果。最后我联系了售后处理,1小时后收到处理结果的邮件,此时已经能在无需要验证的情况下正常使用。