Forum Discussion

jfpelletier's avatar
jfpelletier
Contributor
2 years ago

Error message: Cannot lookup a property on a NULL value

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:

And the output looks just fine:

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

Can someone help me find out what I did wrong?

Thanks in advance!

JF

7 Replies

    • jfpelletier's avatar
      jfpelletier
      Contributor

      Hello SpiroTaleski,

      Not sure if it's related, but I managed to solve the issue last night with the help of a support representative helping me with a very similar issue.

      I had quite a lot of opened snaps in the Designer (left-overs from previous attempts...), and at least one of them seem to have interfered somehow because when we disabled all the open snaps that were doing nothing, the issue disappeared...

      We were not able to pin-point the exact snap that was apparently causing the issue, anyway it's resolved and working today... ๐Ÿ™‚

      Thanks a lot for taking the time to look into this issue and suggesting solutions! ๐Ÿ™‚

      Kind regards,

      JF

  • alchemiz's avatar
    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

    EmEm

    • jfpelletier's avatar
      jfpelletier
      Contributor

      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:

      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's avatar
    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? 

    • jfpelletier's avatar
      jfpelletier
      Contributor

      Hello SpiroTaleski,

      I'm trying to send the fields as multipart payload. Please see screenshot from the HTTP Client configuration:

      And this is what it looks like in the Expression Builder:

      Thanks!

      JF