amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Add File name to Error: 'jsonString' argument missing or empty

Open matansagee opened this issue 5 years ago • 11 comments

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum

I encounter this error when running amplify api gql-compile but I don't know which file is problematic. Can you please add an indication of which file is not serializing?

amplify version - 4.38.0

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

matansagee avatar Dec 08 '20 02:12 matansagee

I get the same now on my project when running amplify push ' image

I did a amplify pull in the hope to resolve the issue, but it still occurs.

amplify cli version 4.38.0

Update: It seems to only happen only in one of my environments, not all.

atlesp avatar Dec 08 '20 07:12 atlesp

스크린샷 2020-12-08 오후 6 32 56 I checked the same error and tried amplify pull, but the error comes out as follows. 스크린샷 2020-12-08 오후 6 34 50 amplify cli version 4.38.0

Update: I solved it by amplify delete, amplify init again in the main branch, amplify env add, and then proceed by choosing to not use the existing environment.

ywroh avatar Dec 08 '20 09:12 ywroh

Seems to be related to #6097, closing in favor of that.

attilah avatar Dec 08 '20 16:12 attilah

Reopening to gather more information on the logging error.

@ywroh That logging related error looks interesting to me, did you cleanup logging data in-between the operations or do you have any pointers on how that could have happened

attilah avatar Dec 08 '20 16:12 attilah

@attilah Thanks for your interest in my logging information.

Unfortunately, I didn't clean up the logging data between tasks, and I'll tell you as far as I can remember why it happened.

I did amplify init in the dev branch of my hb-platform project and then moved to the test branch to create the test backend and amplify env add, but the test backend was not properly created by selecting use existing environment.

Then, when I came back to the dev branch and entered the above command, an error occurred.

Please understand that my memory may be inaccurate.

ywroh avatar Dec 08 '20 18:12 ywroh

@ammarkarachi ^^^

Closing and will track as part of the other similar issue.

attilah avatar Dec 08 '20 18:12 attilah

Still seeing this using cli version 4.39 and also in the admin ui. Looks like the related issue was closed out. Am I missing some steps here?

image

lebull avatar Dec 13 '20 16:12 lebull

Still seeing this using cli version 4.39 and also in the admin ui. Looks like the related issue was closed out. Am I missing some steps here?

image

I'm getting the same issue here. CLI version 4.39. I created the project using the admin UI but it is not working in my environment

dacarva avatar Dec 14 '20 22:12 dacarva

@dacarva it does not seem like this is released yet when looking at the changelog.

atlesp avatar Dec 15 '20 09:12 atlesp

Thanks @atlesp , Yes the fix hasn't been released yet. It should be out soon

ammarkarachi avatar Dec 15 '20 17:12 ammarkarachi

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 for those types of questions.

github-actions[bot] avatar May 25 '21 11:05 github-actions[bot]