Comments (5)
Try using
--data-binary @c:/home/bag.jpg
instead of
-F image="@c:/home/bag.jpg"
from pastec.
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.
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.
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.
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)
- Segmentation fault (core dumped)
- Unix socket support HOT 1
- Pastec Server Not retruns More than 100 records HOT 1
- Installation Error - CMake on mac HOT 2
- Run pastec in https HOT 1
- IMAGE_NOT_ENCODED HOT 4
- Image not encoded HOT 2
- Querying from HTTP HOT 1
- How does image resolution impact results? HOT 4
- Loading the same index on different platforms HOT 5
- Problem when installing pastec on ubuntu 18.04 HOT 5
- Questions regarding pastec HOT 1
- Python wrapper HOT 5
- Feature: VisualWordsORB, but for Danbooru HOT 4
- all the -d commands error, why ? HOT 1
- Segmentation fault (core dumped) HOT 3
- pastec "Could not open the backward index file" HOT 11
- Attach 2 models to the index ?
- Continued developement and problem in weight ranking
- Any publication or text about Pastec? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pastec.