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.

entities in request always empty

See original GitHub issue

I’m submitting a…

  • Bug report
  • Feature request
  • [ x ] Documentation issue or request
  • Other… Please describe:

Expected Behavior

If i set an entity in my language model it should be filled up with a value when the request is sent.

Current Behavior

I’m trying to migrate my v3 project to v4 and everything works fine beside migrating my inputs to v4. I adjusted the language model as described in the documentation and this is how my intent looks right now:

"SetupUsernameIntent": {
        "phrases": [  "{name}",
          "my name is {name}",
          "i am {name}",
          "you can call me {name}"],
        "entities": {
          "name": {
            "type": {
              "alexa": "AMAZON.US_FIRST_NAME",
              "dialogflow": "@sys.given-name"
            }
          }
        }
      }

This is how my intent handler looks:

@Intents('SetupUsernameIntent')
setupUsername(){
    console.log(this.$entities);
}

However this.$entities is always empty if i do for example my name is John. I also see that in the Debugger in the lifecycle that now entities are being added.

What am i doing wrong? My example is pretty much the same as in documentation.

PS: the right intent is triggered, so the routing works

Your Environment

  • Jovo Framework version used: 4.0.0
  • Operating System: MacOS, Firefox

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
m-rippercommented, Nov 25, 2021

Hey @EeeDotZee, I am glad that I could help even if the dynamic part didn’t work. I will take a look into this.

Regarding the typings of nlpjs I agree, that’s something we’re going to add in the near future as well. Sadly, nlpjs is written in javascript and does not provide typings itself, but we can go through the code and type the most important parts, it just had a low priority so far.

It’s definitely helpful, thank you for your feedback!

0reactions
tfrenkencommented, Feb 7, 2022

Sorry for reopening this but are there any updates on enabling the debugger to auto-fill entities?

The workaround with a custom entity type for the debugger works for me, the small hack proposed my @m-ripper does not - although I am trying to extract a search query, not a name.

Being able to have the debugger’s NLP auto extract entities would be really nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring REST @RequestBody is always empty - Stack Overflow
My RequestBody is always empty. When I send a request via Chrome PostMan I always get a serialized entity back with only null...
Read more >
A 'type' field of entity is always empty · Issue #37 - GitHub
I'm trying to use Google Document AI for getting data from a PDF file. But a 'type' field of entity is empty always....
Read more >
get_body_params() is always empty in POST request
I am sending the POST request using Postman and the following body : { "userID" = 3 }. Whatever I am doing, the...
Read more >
GetConversationsCallsHistory - result always empty - .NET SDK
ALWAYS returns an empty result set. Entities Count=0. No authorization/authentication issue. Fiddler shows this: Request.
Read more >
HTTP/1.1: Status Code Definitions
TRACE an entity containing the request message as received by the end server. ... thus is always terminated by the first empty line...
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