Display a Note

#21

Had this exact issue, I had “authorizor” in the yml instead of authorizer

1 Like

#22

Glad you figure it out. Thanks for reporting back.

0 Likes

#23

Hello,

Thank you for this awesome tutorial!

I am having trouble getting the display note page to load. Similar to previous users, I am getting an
“Error: Request failed with status 500” in the front end when I click on a note in the notes list.

I checked the AWS cloudwatch logs and although I’m not sure what to expect, it does not look like it is throwing an error.

I also tried manually going to the url of one of the note Id’s (localhost:3000/notes/{noteId}) and get the same “Request Failed” message and it brings me to the a different webpage (localhost:3000/notes/undefined)

I believe I followed the instructions correctly and am checking with the repo to make client github repo to make sure my Home, Router and Notes js pages are the same up until this point in the tutorial.

Do you have any ideas what the error could be? Also any debugging steps/ techniques would be greatly appreciated!

Thanks

0 Likes

#24

I found the issue. I used chrome’s inspect tool to see that the link wasn’t being defined correctly so I figured there might be an error somewhere else.

I had named key in the backend set to noteID instead of noteId for some reason and that was causing undefined to show up instead of the correct key.

Thanks again for the tutorial! Will continue going through it

1 Like

#25

Ah glad you figured it out!

0 Likes

#26

Hello,

Thank you for this awesome tutorial!

I am having trouble getting the display note page to load. I am getting an
“Error: Request failed with status 500” in the front end when I click on a note in the notes list.!
Here is my error and log
1|449x131


Do you have any ideas how to solve this?

0 Likes

#27

Hello,

I have an issue when displaying a note with an attachment :

If I comment the following code: the note loads properly :

        {this.state.note.attachment &&
          <FormGroup>
            <FormLabel>Attachment</FormLabel>
            <FormControl.Static>
              <a
                target="_blank"
                rel="noopener noreferrer"
                href={this.state.attachmentURL}
              >
                {this.formatFilename(this.state.note.attachment)}
              </a>
            </FormControl.Static>
          </FormGroup>}

Edit : After trying to commend/uncomment some code, I noticed that it’s the FormControl.Static which cause the bug. If I remove it, it’s working.

Thx for your help ! :wink:

0 Likes

#28

Hmm that is a CloudWatch Alarm, it isn’t the error log. Have you looked at your CloudWatch logs?

0 Likes