cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Error message: Cannot lookup a property on a NULL value

jfpelletier
New Contributor III

Hello everyone,

I'm having this weird issue where I use a JSON generator to create a payload for the following HTTP client snap, but apparently all the values resulting are NULL, which is weird because the output of the JSON looks fine.

This is what I use in the JSON generator:

jfpelletier_0-1699039103298.png

And the output looks just fine:

jfpelletier_1-1699039299233.png

However, in the following HTTP client snap, the output preview gives an error because apparently the value is null.

jfpelletier_2-1699039417280.png

Can someone help me find out what I did wrong?

Thanks in advance!

JF

7 REPLIES 7

alchemiz
Contributor III

Hi @jfpelletier ,

I don't know if this applies to the issue that you are having where there's no valid key name to the form where you are setting the name value

alchemiz_0-1699143875167.png

EmEm

SpiroTaleski
Valued Contributor

@jfpelletier 

Why you didn't use the Mapper snap for building the JSON? 

Hello @SpiroTaleski,

Thanks for your comment. Actually, I already tried using a mapper right after the JSON generator, and the mapper has no issue seeing the values and doing the mapping:

jfpelletier_0-1699283354189.png

Still, the following HTTP Client snap says that the values are null...

Could this be related to what @alchemiz reported last Saturday?

Thanks!

JF

SpiroTaleski
Valued Contributor

@jfpelletier 

Are you trying to send above fields in the body of the API request? 

Can you please share the HTTP Client Snap configuration?