-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
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
api gql-compile produces wrong auth VTL for Mutation #2454
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂 |
I notice you have |
Hi, I don't know why correct vtl code has missing |
I maybe had some similar problems. |
I tried to reorder @auth rules but it hasn't solved the problem. My current rules set is given below:
I have also just upgraded amplify-cli to |
@nilyin an other tip, don't use sub as the claim. Second info: I had to play around some pushes, I couldn't create items with a create rule. After I played with the rules, at some point it just works. (Maybe this was an other problem like cache or something) |
@biller-aivy thanks for your advice on token's About current issue: in my case only resolver for |
with this, you can use username as clam in the Schema. Or did I misunderstand your question? |
@biller-aivy I was asking about |
to Amplify team: is there any way (such as command line option) to turn on debug or verbose mode for |
At the moment it is the same id like the sub/username but it is not necessary for my logic. I replaced all sub to username in my code. And the user I call by owner with an secondary index. |
@AnilMaktala hi, did you find any clue to my problem with corrupted deleteComponent Mutation's VTL generation? Or at least pls. give me an idea how can i debug |
Hi @nilyin, can you check if you have a file override for that resolver defined under |
Hi @phani-srikar : my |
Hey @nilyin, Can you please try adding below sample model in your local machine and run
|
hi @AnilMaktala , thank you for getting back to me.
after that I have got this output in terminal: ` The generated resolvers and schema.graphql are attached: |
Hi @AnilMaktala are there any news? It looks like single model (Component) schema.graphql generates not empty What should I do next? Is it possible that things mentioned in this
|
Hi @nilyin, The issue you are facing appears to be specific to your particular scenario. Would you be available for a call where we can screen share, allowing me to better understand and assist you with resolving the problem? |
Anil, hi. Yes, I'll be available for a call Mon -Thursday upcoming week. Please send me a link for a meeting at your convenience.
Thank you, N.
пт, 6 сент. 2024 в 23:00 Anil ***@***.***> написал(-а):
Hi @nilyin, The issue you are facing appears to be specific to your particular scenario. Would you be available for a call where we can screen share, allowing me to better understand and assist you with resolving the problem?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@AnilMaktala hi, can you please offer possible time-slots for today or dates at the end of next week? You may send it to directly to my email. |
Anil, hi: I don't have discord. I use zoom, telegram, google meet, whatsapp.
Can we use these ones or Discord is the only option for you and i need to create account there?
Thanks., N.
пт, 20 сент. 2024 в 1:07 Anil ***@***.***> написал(-а):
Hi @nilyin, Are you on Discord? If so, could you please share your Discord username with me?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @nilyin, Discord is the preferred platform for communication. Would you mind creating an account there? |
Anil, hi. I signed up with Discord. Please send me an invite link (my id: nicktech5481) or you may join my group at link: Join the peerf-amplify Discord Server!
|
|
| |
Join the peerf-amplify Discord Server!
Check out the peerf-amplify community on Discord - hang out with 1 other members and enjoy free voice and text c...
|
|
|
Can we talk on Monday? A time is up to you.
Thanks, N.
четверг, 26 сентября 2024 г. в 03:58:00 GMT+3, Anil Maktala ***@***.***> написал(-а):
Hi @nilyin, Discord is the preferred platform for communication. Would you mind creating an account there?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v21.7.1
Amplify CLI Version
12.10.3
What operating system are you using?
Mac, Win10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
after
amplify api gql-compile
the vtl file for deleteComponent mutation has no code to process "User Pool Authorization", which results to authorization error in graphql Mutation deleteComponet. My generated Mutation.deleteComponent.auth.1.res.vtl file content (bad file):when i've tried to use new machine and installed all codebase and deps i initially received correct (good) file content for "User Pool Authorization":
when I have initialized my backend env and did
amplify pull
mygood
vtl file above was rewritten tobad
one from the cloud backend. But when weird things happened: my followingamplify api gql-compile
commands stopped generating the correct file (only bad file above was genereted every time). BTW my deleting of build/resolvers/* files didn't help at all.What could happen? Why vtl engine stopped working correctly if my original schema.graphql file wasn't changed?
Expected behavior
correct (good) vtl / reolver file is to be generated
Reproduction steps
amplify api gql-compile
Project Identifier
0682ade323272668435183796fe4bc9e
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: