Open tomdoherty opened 2 years ago
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description When putting requests to Consul, no response is received. We just get a HTTP 200 to indicate success. This means
salt.utils.http.query
throws exceptionExpecting value: line 1 column 1 (char 0)
in_query
here as there is nothing to decode. Modifyingsalt.utils.http.query
to usedecode=False
resolves thisSetup Here is an example state that installs/configures consul and can manifest the issue
If you run the above you will see the service is correctly created:
But salt incorrectly reports an error:
Steps to Reproduce the behavior See above, or
vagrant up
https://github.com/tomdoherty/salt-dockerExpected behavior Error should not be thrown
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ``` [vagrant@master ~]$ salt --versions-report Salt Version: Salt: 3004 Dependency Versions: cffi: 1.11.5 cherrypy: unknown dateutil: 2.6.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.10.1 libgit2: Not Installed M2Crypto: 0.35.2 Mako: Not Installed msgpack: 0.6.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.14 pycrypto: Not Installed pycryptodome: Not Installed pygit2: Not Installed Python: 3.6.8 (default, Mar 19 2021, 05:13:41) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 19.0.0 smmap: Not Installed timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.4 System Versions: dist: centos 8 locale: UTF-8 machine: x86_64 release: 5.10.47-linuxkit system: Linux version: CentOS Linux 8 ```Additional context
below patch fixes this