question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with HTML description on updateItem

See original GitHub issue

I don’t understand why when I try to update this item with this code:

updateItem({
  item: {
    id: "bb04b466539446cb9715943406c4c707",
    description: "<h1>H1 Header</h1><p>Paragraph</p>",
    clearEmptyFields: true
  },
  authentication: session
}).then(response=>{
  console.log("response=",response)
});

The header tag is removed:

Screen Shot 2019-03-31 at 01 53 45

@jgravois are you “processing” the description field before sending the request? (I took a quick look to the update.ts file but I haven’t seen it)

My code can be found here.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jgravoiscommented, Apr 2, 2019

closing, but happy to chat more about this if anyone has additional questions down the line.

1reaction
jgravoiscommented, Apr 3, 2019

awesome. looking really good!

Read more comments on GitHub >

github_iconTop Results From Across the Web

UpdateItem - Amazon DynamoDB - AWS Documentation
Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete,...
Read more >
DynamoDB UpdateItem Doesn't Work - Stack Overflow
It looks like you're trying to apply a document path to a non JSON item. There's no concept of ordering in a set,...
Read more >
Update Item Problem - "success", but without changes
Hi all! I try to update an item's barcode (Field: “CodeBars” in “OITM”) via a (b1if) B1 Object Call using the corresponding object-template....
Read more >
bug: DynamoDB: updateItem should not create a new item ...
UpdateItem should not create a new item if the key doesn't exist - at least this is the behavior on AWS (used the...
Read more >
Solved: Http Error 400 Bad Request while trying to update
My flow starts to create some variables to generate then the html file inside a ... It fails at this "Update item" steps,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found