Value 'None' is not a dict. Value path: '/slots'

can you explain why i’m getting this error. what wrong in first line which is “version: 2.0” ??

1 Like

Hello @sharsh

What does your slots section for your domain.yml look like? Note that None in Python is null in yaml.

domain.yml (3.6 KB) stories.yml (1.8 KB) nlu.yml (24.5 KB)

Hi @j.mosig I’m attaching those file, can you check and please let me know, as here I’m unable to figure it out.

Thanks

actions.py (2.9 KB)

Please, first try to copy paste your files here and see if the yaml is valid: http://www.yamllint.com/

hi @j.mosig yes it shows valid, I checked already.

what if you remove these lines:

slots:
feedback:

? If that’s it, then this may be a small bug in the Rasa validation code.

@j.mosig no isn’t the one. could i send u whole code. can you try to run in your system in rasa 2.x version and evaluate? I’m pissed with this bug and was checking in the whole weekend still unable to find it out why this error has came.!

Sorry, I can’t do the debugging for you. But I just had another look at the domain.yml and it seems the spacing is not correct. For example,

slots:
feedback:
type: unfeaturized
auto_fill: false
firstN:
  type: unfeaturized
  auto_fill: false
lastN:
  type: unfeaturized
  auto_fill: false

should be

slots:
  feedback:
    type: unfeaturized
    auto_fill: false
  firstN:
    type: unfeaturized
    auto_fill: false
  lastN:
    type: unfeaturized
    auto_fill: false

YAML is extremely sensitive to whitespaces. Even when it is generally valid, the hierarchy of items depends on it and when the spacing is wrong Rasa won’t accept it.

1 Like