Doing Martian API request from a remote computer doesn't work

63 views
Skip to first unread message

Jonas Aschenbrenner

unread,
Dec 12, 2016, 11:34:41 AM12/12/16
to martianproxy-users, Adrian Lanning
Hi,

we want to run the Martian Proxy on a server and access the Martian API from remote computers. When we do a request "http://<IP>:8181/logs" to the Martian server it returns a 404 Not found response.
The Martian server only responds correctly when requested with "http://localhost:8181/logs" from the server itself.
Could you please help us to resolve our issue.

Message has been deleted

Jonas Aschenbrenner

unread,
Dec 13, 2016, 5:25:57 AM12/13/16
to martianproxy-users
Hi Bramha,

thanks for the quick response. I'm not sure what you refer with "ads/testing/jlt/martian/main.go" (I'm not part of Google). Your suggested addition with the -api_host=<host> flag looks like what I need.
I will try it out when it is in https://github.com/google/martian.

Am Montag, 12. Dezember 2016 22:14:26 UTC+1 schrieb Bramha Ghosh:
Hi Jonas,
I'm assuming that you're running the Martian at ads/testing/jlt/martian/main.go - I'm seeing that we should be taking a flag to set the host of the proxy API server.

You'll want to pass in -api_host=<host> when you start the Martian, and you'll be able to hit it with requests to <host>:8181


It'll be in shortly.

Sorry!

Bramha


--
You received this message because you are subscribed to the Google Groups "martianproxy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to martianproxy-users+unsub...@googlegroups.com.
To post to this group, send email to martianpr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/martianproxy-users/f27a314e-7756-43e5-a26f-e3900f8fee7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonas Aschenbrenner

unread,
Dec 13, 2016, 10:02:53 AM12/13/16
to martianproxy-users
We have now made this change to expose the Martian API also to remote machines. Maybe that can be under a CLI flag.


Am Montag, 12. Dezember 2016 22:14:26 UTC+1 schrieb Bramha Ghosh:
Hi Jonas,
I'm assuming that you're running the Martian at ads/testing/jlt/martian/main.go - I'm seeing that we should be taking a flag to set the host of the proxy API server.

You'll want to pass in -api_host=<host> when you start the Martian, and you'll be able to hit it with requests to <host>:8181


It'll be in shortly.

Sorry!

Bramha


On Mon, Dec 12, 2016 at 8:34 AM Jonas Aschenbrenner <jonas.asc...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages