openhaystack icon indicating copy to clipboard operation
openhaystack copied to clipboard

OHServerApp

Open Systm21 opened this issue 3 years ago • 9 comments

Hi everybody, i have compiled the OHServerApp with 0.0.0.0 and Port 8099 in Vapor HTTPServer. App runs, but whatever i do, the Server always shows {"error":true,"reason":"Not Found"}. Is it possible, that Someone is making the App with 0.0.0.0 IP for me?

I don't know, what the Problem is, do I have to pay attention to anything when creating the project with xcode? Is it possible to run Openhaystack and OHServer Side by Side, or should the server run alone to avoid any Problems?

Thank You

Systm21 avatar Jul 22 '22 17:07 Systm21

Is working as expected. a valid ID or the formatting is wrong so the error is correct and exactly what it says. error yes. why?tag not found. how are you requesting the information and what is the full url you are using?

Itheras avatar Jul 23 '22 01:07 Itheras

Hello, thank you for your reply. I used http://interalip:8099/getLocationReports. Do I also have to define the key in the URL? So far, I have assumed that this will be read from the data of the OpenHayStack.app.

Systm21 avatar Jul 23 '22 11:07 Systm21

url looks good. Then there must be a issue with the id how are you fetching it ? Are you using the iOS app? or another method how is your id formatted if the later is the case.

Itheras avatar Jul 23 '22 12:07 Itheras

Is there a method, without using the app? Thought, that the browser can display the undecrypted Report, when i provide the privatekey in the url.

Systm21 avatar Jul 23 '22 20:07 Systm21

You have to send the key id not the private key and the key id must be sent in its base64 form to the server the response then need to be decoded since in wont be in readable form.

Itheras avatar Jul 23 '22 20:07 Itheras

Yes, i understand.

But how do i send the key to the Server? Http Requests?

Systm21 avatar Jul 23 '22 21:07 Systm21

Http Post json array.

{ "ids": [ "base64key" ] }

Itheras avatar Jul 23 '22 21:07 Itheras

Good afternoon.

What is the router for: getAndDecryptReports and how to use it?

igormak avatar Apr 30 '23 12:04 igormak

@Systm21, Hi, could you please tell me how to change the Vapor HTTPServer? I can't find it

Bei-Ji-Quan avatar Sep 01 '23 02:09 Bei-Ji-Quan