We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I can't English. I use Google Translate. I'm sorry if I do not understand the sentences I wrote...
I want to be able to set serice_info as below ↓
Amplify.configure({ Auth: { identityPoolId: "ap-northeast-1:********-****-****-****-************", region: "ap-northeast-1", userPoolId: "ap-northeast-1_*********", userPoolWebClientId: "**************************" }, API: { endpoints: [ { name: "API", endpoint: "https://custom-domain.com", service_info: { service: "execute-api", region: "ap-northeast-1" } } ] } }
I could not resolve the service_info and it caused an error when I made the endpoint of the API a custom domain.
parse_service_info is expecting /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/. service_info.region and service_info.serivce are always null when you are in a custom domain. https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Common/Signer.ts#L104
parse_service_info
/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/
service_info.region
service_info.serivce
parse_service_info doesn't execute when service_info exists. https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Common/Signer.ts#L249
service_info
But always execute parse_service_info, because RestClient does not setting service_info. https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/API/RestClient.ts#L165
I think it will solve it, if you can pass the service_info set in config to the third argument when Signer.sign calls.
Signer.sign
The text was updated successfully, but these errors were encountered:
Added support for service_info and custom domains in PR #321
Sorry, something went wrong.
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.
*-help
No branches or pull requests
Hi.
I can't English. I use Google Translate.
I'm sorry if I do not understand the sentences I wrote...
I want to be able to set serice_info as below ↓
I could not resolve the service_info and it caused an error when I made the endpoint of the API a custom domain.
parse_service_info
is expecting/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/
.service_info.region
andservice_info.serivce
are always null when you are in a custom domain.https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Common/Signer.ts#L104
parse_service_info
doesn't execute whenservice_info
exists.https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/Common/Signer.ts#L249
But always execute
parse_service_info
, because RestClient does not setting service_info.https://github.com/aws/aws-amplify/blob/master/packages/aws-amplify/src/API/RestClient.ts#L165
I think it will solve it, if you can pass the service_info set in config to the third argument when
Signer.sign
calls.The text was updated successfully, but these errors were encountered: