question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trains-init asks web service URI but promp shows API URI

See original GitHub issue

With trains-agent==0.15.0rc0

When executing trains-agent init:

TRAINS-AGENT setup process

Please create new trains credentials through the profile page in your trains web app (e.g. https://demoapp.trains.allegro.ai/profile)
In the profile page, press "Create new credentials", then press "Copy to clipboard".

Paste copied configuration here: 

Could not parse credentials, please try entering them manually.
Enter user access key: *****
Enter user secret: *****

Editing configuration file: /Users/h4dr1en/trains.conf
Enter the url of the trains-server's Web service, for example: http://localhost:8080

API Host configured to: [] 

The user is asked to enter the the url of the trains-server's Web service, but the prompt message shows API Host configured to, which is not the same port (typically 8008 instead of 8080). This can be confusing for the user. It works well when entering the API URI (I did not test entering the web server URI).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bmartinncommented, Jun 4, 2020

@H4dr1en it was fixed in trains-agent init but not in trains init 😢 I’ll make sure trains is also fixed

1reaction
bmartinncommented, May 24, 2020

Thanks @H4dr1en , you are absolutely correct . I’ll make sure we fix it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

trains-init asks web service URI but promp shows API URI #19
The user is asked to enter the the url of the trains-server's Web service , but the prompt message shows API Host configured...
Read more >
Attribute Routing in ASP.NET Web API 2 | Microsoft Learn
Routing is how Web API matches a URI to an action. ... This topic shows how to enable attribute routing and describes the...
Read more >
Python and REST APIs: Interacting With Web Services
In this tutorial, you'll learn how to use Python to communicate with REST APIs. You'll learn about REST architecture and how to use...
Read more >
REST API 404: Bad URI, or Missing Resource? - Stack Overflow
the real HTTP 404 when the rest API is not available in the given url, it is thrown by the application server or...
Read more >
Using OAuth 2.0 for Web Server Applications | Authorization
This document explains how web server applications use Google API Client Libraries or Google OAuth 2.0 endpoints to implement OAuth 2.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found