Skip to content

Commit ada79e4

Browse files
authored
host requires protocol to be included (#262)
If the http or https protocol is not prefixed, the following error will be thrown: ```sh ruby examples/example.rb ``` ``` ~/discourse_api/config.yml ~/discourse_api/lib/discourse_api/client.rb:193:in `check_subdirectory': undefined method `request_uri' for an instance of URI::Generic (NoMethodError) URI(host).request_uri != "/" ^^^^^^^^^^^^ from ~/discourse_api/lib/discourse_api/client.rb:63:in `initialize' from examples/example.rb:7:in `new' ```
1 parent 969f360 commit ada79e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config_example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Specify your environment by making a copy of this file to create a file in your root directory called config.yml with your environment settings.
22

3-
# host e.g. localhost:3000 or discourse.my_domain.com
3+
# host e.g. http://localhost:3000 or https://discourse.my_domain.com
44
host: YOUR_HOST_NAME
55

66
# api user (can effect results returned, e.g. .categories method returns only the categories your api_username can see)

0 commit comments

Comments
 (0)