Skip to content
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

fix: use correct curl command for creating notes #727

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

Mingyang-Li
Copy link
Contributor

Issue

The original request body of the example has parsing issues once executed, I've updated it with the payload that worked for me.

Details

❌ Console outputs when using --body "{\"content\":\"hello world\",\"attachment\":\"hello.jpg\"}"

Getting temporary credentials
Making API request
undefined:1
{\
 ^

    at JSON.parse (<anonymous>)
    at makeRequest (C:\Users\admin\AppData\Local\npm-cache\_npx\ea84c6478cf14779\node_modules\aws-api-gateway-cli-test\index.js:179:17)

etc etc

✅ Console outputs when using --body '{""content\":\"hello world\",\"attachment\":\"hello.jpg\"}'

Authenticating with User Pool
Getting temporary credentials
Making API request
{
  status: 200,
  statusText: 'OK',
  data: {
    userId: 'PLACEHOLDER',
    noteId: 'PLACEHOLDER',
    content: 'hello world',
    attachment: 'hello.jpg',
    createdAt: PLACEHOLDER
  }
}

The original request body of the example has parsing issues once executed, I've updated it with the payload that worked for me
@jayair
Copy link
Contributor

jayair commented Aug 17, 2023

Which OS are you using?

@Mingyang-Li
Copy link
Contributor Author

Which OS are you using?

Good question. I forgot to mention it in the PR - I'm using Windows

@jayair
Copy link
Contributor

jayair commented Aug 17, 2023

Thanks!

@jayair jayair merged commit 70cb023 into sst:master Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants