Code Monkey home page Code Monkey logo

Comments (5)

chrishein avatar chrishein commented on August 16, 2024

Try using

--data-binary @c:/home/bag.jpg

instead of

-F image="@c:/home/bag.jpg" 

from pastec.

saintjab avatar saintjab commented on August 16, 2024

I had tried both but it still gives the same error. And even tried with the path in single and double quotes but the results are same

curl --header "AuthKey: xxxxxxxxxxxxx" -X POST --data-binary @c:/home/gombolola1.jpg https://api.pastec.io/indexes/ xxxxxxxxxxxxx/index/searcher
{"type":"MISFORMATTED_REQUEST"}

curl --header "AuthKey: xxxxxxxxxxxxx" -X POST --data-binary '@c:/home/gombolola1.jpg' https://api.pastec.io/indexes/xxxxxxxxxxxxx/index/searcher
{"type":"MISFORMATTED_REQUEST"}

curl --header "AuthKey:xxxxxxxxxxxxx" -X POST --data-binary "@c:/home/gombolola1.jpg" https://api.pastec.io/indexes/xxxxxxxxxxxxx/index/searcher
{"type":"MISFORMATTED_REQUEST"}

curl --header "AuthKey: xxxxxxxxxxxxx" -X POST --data-binary "c:/home/gombolola1.jpg" https://api.pastec.io/indexes/xxxxxxxxxxxxx/index/searcher
{"type":"MISFORMATTED_REQUEST"}

curl --header "AuthKey:xxxxxxxxxxxxx" -X POST --data-binary 'c:/home/gombolola1.jpg' https://api.pastec.io/indexes/xxxxxxxxxxxxx/index/searcher
{"type":"MISFORMATTED_REQUEST"}

and I am 100% sure of my AuthKey and API key as the result indicates its not related to those

from pastec.

chrishein avatar chrishein commented on August 16, 2024

Well, I can't help you any further, as you're referring to https://api.pastec.io, which is private hosted version of a service. I don't know what version of this project's source code is deployed there.

For what I can see in the code, there is no way the server can return a MISFORMATTED_REQUEST while doing a post to the search endpoint, other than hitting an internal server error.

You should try reaching http://pastec.io/ support.

from pastec.

saintjab avatar saintjab commented on August 16, 2024

Thanks @chrishein for the help anyways. I tried contacting their support but nothing yet so I am gonna wait for them. In the meantime, can you give me some pointers on how I can self host this library. I would love to test it. Thanks

from pastec.

chrishein avatar chrishein commented on August 16, 2024

You can run it on your own server by following the docs at http://pastec.io/doc/oss/#setup
We should probably not follow this conversation on this threads as it is not related to this project or specific issue.
Regards

from pastec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.