Hi there, it seems an API endpoint may have vanished.
>From - http://docs.ansible.com/ansible/galaxy.html

Authenticate with Galaxy <http://docs.ansible.com/ansible/galaxy.html#id14>


"If you do not wish to use your GitHub password, or if you have two-factor 
authentication enabled with GitHub, use the –github-token 
option to pass a personal access token that you create. Log into GitHub, go to 
Settings and click on Personal Access Token to create a token"

The command line was throwing an exception about inability to JSON decode the 
response - so I inserted a breakpoint into lib/ansible/galaxy/api.py

>From there, I discovered the URL and POST parameters being used. I then tried 
>calling from the command line using CURL.

(I've stripped private info from the token)

[~%]curl -XPOST "https://galaxy.ansible.com/api/v1/tokens"; --data 
"github_token=XXXXXXXXXXXXXa934c175XXXXXXXXDXXXXXXXXe9d" | head
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5934    0  5881  100    53   6447     58 --:--:-- --:--:-- --:--:--  6448


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en-us">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Ansible, Inc" />
    <link rel="shortcut icon" href="/static/img/favicon.ico" />

It seems like the API endpoint is down or not mapped correctly or.. suggestions 
please?

I'm using Ansible from git, tried with versions devel and stable-2.0.

Any ideas? 

Bryan





-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fa4d2c9e-3154-41de-8c32-78ccef079043%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to