Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Upon Calling Task.Init(), I Get Below Error: Failed Getting Token (Error 401 From

Upon calling Task.init(), I get below error:
Failed getting token (error 401 from http://localhost:8008 ): Unauthorized (invalid credentials) (failed to locate provided credentials).

I switched from pip install trains to local git clone. And reconfigured access and secret key in trains.conf.
Generated the credentials on the web page. What am I doing wrong?

  
  
Posted 4 years ago
Votes Newest

Answers 11


I did git clone, not pip install

  
  
Posted 4 years ago

Ohh that's why you don't have it 🙂

  
  
Posted 4 years ago

You can install it, and after the wizard is done uninstall it, if you want to keep using the trains from the git clone.

  
  
Posted 4 years ago

🙂 I could not locate this file!

  
  
Posted 4 years ago

Hi LazyLeopard18
I suggest removing the trains.conf and running:
trains-initAt the end of the wizard it verifies the credentials, so you should be good to go.
I would also recommend using the machine IP and not local host, as on some setups (Windows / VM etc) localhost will no be bridged to the VM/Docker but machine IP will be.

  
  
Posted 4 years ago

or
pip install -U trains

  
  
Posted 4 years ago

command line 🙂
cmd.exe / bash

  
  
Posted 4 years ago

where do I run trains-init from?

  
  
Posted 4 years ago

got it

  
  
Posted 4 years ago

go tit

  
  
Posted 4 years ago

how did you install trains?
pip install git+

  
  
Posted 4 years ago
1K Views
11 Answers
4 years ago
one year ago
Tags