All Apps and Add-ons

How to fix Add-on Builder, Rest API: AttributeError: module 'socks' has no attribute 'PROXY_TYPE_HTTP_NO_TUNNEL'

apignata
Explorer

When creating a Rest API data input for the Add-on Builder, and testing the REST API call I receive the following error:


Traceback (most recent call last):
File "/Applications/Splunk/etc/apps/TA-test/bin/testtest_1663829580_707.py", line 14, in <module>
import input_module_testtest_1663829580_707 as input_module
File "/Applications/Splunk/etc/apps/TA-test/bin/input_module_testtest_1663829580_707.py", line 29, in <module>
from cloudconnectlib.client import CloudConnectClient
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/client.py", line 8, in <module>
from .configuration import get_loader_by_version
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/configuration/__init__.py", line 1, in <module>
from .loader import get_loader_by_version
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/configuration/loader.py", line 15, in <module>
from ..core.exceptions import ConfigException
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/core/__init__.py", line 1, in <module>
from .engine import CloudConnectEngine
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/core/engine.py", line 6, in <module>
from .http import HttpClient
File "/Applications/Splunk/etc/apps/TA-test/bin/ta_test/aob_py3/cloudconnectlib/core/http.py", line 26, in <module>
'http_no_tunnel': socks.PROXY_TYPE_HTTP_NO_TUNNEL,
AttributeError: module 'socks' has no attribute 'PROXY_TYPE_HTTP_NO_TUNNEL'

Splunk Version: 8.2.2.1
Add-on Builder Version: 4.1.1
OS: Mac


I found a post to a similar issue, but moving the socks.py one directory up did not fix the issue.

https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-TA-New-Relic-Insight-not-ingesting-data/...

Creating a new Add-on still experienced the issue.
Downloading Add-on Builder version 3.0.1 still experienced the issue.

Labels (2)

dersonje2
Engager

Did you ever get it working?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...