bbbco / insomnia-plugin-faker

Faker Plugin for Insomnia REST Client
71 stars 7 forks source link

Expected String, got undefined #4

Closed phaalonso closed 2 years ago

phaalonso commented 4 years ago

image

How I can fix this?

bbbco commented 4 years ago

Hey @phaalonso , can you post what your Faker value config looks like?

phaalonso commented 4 years ago

I don't have any config, just installed faker and is giving me this errors.

bbbco commented 4 years ago

Well it looks like you created a Faker object in your request body. Can you show me what that looks like?

phaalonso commented 4 years ago

Sure, my request body is something like this.

{
    "title": "Como lavar as mãos",
    "text": "Nessa época de pandemia, é extremamente necessário lavar as mãos!",
    "abstract": "Nessa época de pandemia, é extremamente necessário lavar as mãos!",
    "tags": [
        {
            "id": "Dengue"
        },
        {
            "id": "Covid"
        }
    ]
}

I was tried to use Faker => Loren Ipsun too in the textbut it was giving the same error When I tried to use in the body it was send the {% faker ... %} to the backend.

bbbco commented 4 years ago

Thanks. I'll have to look into this. I know insomnia has had some recent updates that I have not kept up with, so it may be that an update to the plug-in is in order.

phaalonso commented 4 years ago

Ok, I will be awaiting.

gschier commented 3 years ago

FYI, I left a comment over on https://github.com/Kong/insomnia/issues/2567 with a solution to this.

https://github.com/Kong/insomnia/issues/2567#issuecomment-683207856

bbbco commented 2 years ago

Closing out issue as this was fixed almost two years ago! :D