-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure fails for http protocol (i.e. sans https) #732
Comments
You have plenty of other options. You could use a proxy that does HTTP to HTTPS for you, you can hack into the CLI to print out the bare requests or you could read the source code to learn how the JSON is built. In go, you can very often read the details about how types are converted into JSON in its type definitions. But I glanced over the clients code, and it seems as if it were constructing some kind of multipart form before submitting. |
Some good ideas. Thx @NobbZ. |
Please make sure to ask your question again in exercism/exercism#4087. We need to get our votes there, and also please feel free to ask for more features in the API there as you need them for your integration into Pharo. |
It sounds like you might have some avenues to try. We won't be disabling HTTPS on the live server, but it should be possible to run a copy of the website locally, which would not use HTTPS. We are doing a multipart fileupload. Here's a test request:
|
@kytrinyx, @iHiD, I've got the website up and running locally per https://github.com/exercism/website. P.S. we should continue this thread at exercism/pharo-smalltalk#96 (comment) "Submitting solutions direct from Pharo" |
I was going to ask: "have you run the seed script as described in the README", only to discover that the readme doesn't actually mention the seed script. Let me fix that. I'll add a comment here with the command to run (I think |
Ok, yes: try You can add pharo locally by editing this list to add it: https://github.com/exercism/website/blob/813be89d0cf21e4fd75bd37ee2df826f6bed7432/app/services/git/seeds_tracks.rb#L8-L69 |
(I also noticed that the |
Yes I ran
but the latter part didn't...
So now lvh.me:3000 has tracks, but none of them have any exercises. btw, I notice that travis.yml does |
That looks suspicious! @kntsoriano do you happen to have seen this before? |
While working on downloading exercises directly into our Pharo IDE,
exercism --verbose...
provided enough info to get the server to hand us a sample JSON string that I could examine inside Pharo. However I have no sample of what the server requires for Pharo to go direct with the "submit" command.The obvious thing is to use Wireshark to examine the protocol on the wire, but the CLI errors when trying to configure it to use HTTP.
For example, the following works...
C:> exercism configure --token d4a3xxxx-secret-xxxx9c56 --api https://api.exercism.io/v1
but this doesn't...
C:> exercism configure --token d4a3xxxx-secret-xxxx9c56 --api http://api.exercism.io/v1
failing with "Error: The token 'd4a3xxxx-secret-xxxx9c56' is invalid."
I presume plain-HTTP might be disabled on your servers. If so, can it be enabled?
Or if preferable, enabled on a different entry point like http://apitesting.exercism.io/v1
OR please advise alternatives.
Being able to observe live use of the API will really help to get our in-IDE tool working.
(btw, any other info about the api spec dropped on our issue 96 would be most welcome.)
The text was updated successfully, but these errors were encountered: