Hi Tauseef,

Adding an @ sign before the path will resolve your problem.
And I verified that both web and postman upload the jar file properly on the 
master branch code.
If you are still having problems then you can provide some more detailed 
information.

Here are some documents of curl by `man curl`.

       -F, --form <name=content>
              (HTTP SMTP IMAP) For HTTP protocol family, this lets curl emulate 
a filled-in form in which a user  has
              pressed the submit button. This causes curl to POST data using 
the Content-Type multipart/form-data ac�\
              cording to RFC 2388.

              For SMTP and IMAP protocols, this is the means to compose a 
multipart mail message to transmit.

              This enables uploading of binary files etc. To force the 
'content' part to be a file, prefix  the  file
              name  with an @ sign. To just get the content part from a file, 
prefix the file name with the symbol <.
              The difference between @ and < is then that @ makes a file get 
attached in the post as a  file  upload,
              while the < makes a text field and just get the contents for that 
text field from a file.


Best,
Yu Chen
________________________________
发件人: Tauseef Janvekar <tauseefjanve...@gmail.com>
发送时间: 2023年11月6日 22:27
收件人: user@flink.apache.org <user@flink.apache.org>
主题: Error in /jars/upload curl request

I am using curl request to upload a jar but it throws the below error

[image.png]
Received unknown attribute jarfile.

Not sure what is wrong here. I am following the standard documentation
https://nightlies.apache.org/flink/flink-docs-master/docs/ops/rest_api/

Please let me know if I have to use some other command to upload a jar using 
"/jars/upload" endpoint

I also tried to upload using webui but it hangs continuously and only calls GET 
api with 200 success- https://flink-nyquist.hvreaning.com/jars

Thanks,
Tauseef

Reply via email to