Forum Discussion

SteveBamford's avatar
SteveBamford
Icon for Neophyte rankNeophyte
5 months ago

Groovy HTTP DELETE requires a payload.

I have been having issues where the Logout for Arista Wireless Cloudvision requires you to send http delete with no payload, I tried various ways to send the Delete with no payload and could not get any to work examples include sending "", {}, "{}"  none of which were effective.

Has anyone else experienced this issue and worked around it.

Arista CV-Cue API Reference.

The above reference is not very useful, but its all I have :)

 

3 Replies

  • SteveBamford​ are you able to get it to work at all? Maybe with cURL or something? I'm surprised the "" doesn't work, as that should be equivalent to sending no payload.

    • SteveBamford's avatar
      SteveBamford
      Icon for Neophyte rankNeophyte

      Hi Mike, 

      So a HTTP Delete via Python Requests with no payload works, its only in Groovy I can't get it to work.

      As Per LM's own documentation it requires the URI, Data and Headers extract below, tried a few different methods of null data and it just didn't work.

      delete​(java.lang.String uri, java.lang.String data, java.util.Map headers) 

      • Mike_Rodrigues's avatar
        Mike_Rodrigues
        Icon for Product Manager rankProduct Manager

        SteveBamford​ seems odd, since the payload is just tacked on AFAIK, and tacking on an empty string should be the same as no payload.

        There may be something else going on behind the scenes.

        Maybe point LM and your python script at something like `python -m http.server` and see what the difference is between Python's and ours.