You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 334, in create
cls.create_check_exists(connector,
File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 315, in create_check_exists
reply = connector.create_object(local_obj.infoblox_type,
File "venv/lib/python3.8/site-packages/infoblox_client/connector.py", line 50, in callee
return func(*args, **kwargs)
File "venv/lib/python3.8/site-packages/infoblox_client/connector.py", line 383, in create_object
raise exception(
infoblox_client.exceptions.InfobloxCannotCreateObject: Cannot create 'record:a' object(s): b'{ "Error": "AdmConProtoError: Invalid value for ipv4addr: {\\"ipv4addr\\": \\"127.0.0.1\\"}: Must be string type", \n "code": "Client.Ibap.Proto", \n "text": "Invalid value for ipv4addr: {\\"ipv4addr\\": \\"127.0.0.1\\"}: Must be string type"\n}' [code 400]
In 0.5.1:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 370, in create
cls.create_check_exists(connector,
File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 316, in create_check_exists
if local_obj.fetch(only_ref=True):
File "venv/lib/python3.8/site-packages/infoblox_client/objects.py", line 439, in fetch
reply = self.connector.get_object(self.infoblox_type,
File "venv/lib/python3.8/site-packages/infoblox_client/connector.py", line 56, in callee
raise ib_ex.InfobloxConnectionError(reason=e)
infoblox_client.exceptions.InfobloxConnectionError: Infoblox HTTP request failed with: 400 Client Error: Bad Request for url: https://infoblox.domain.local/wapi/v2.10/record%3Aa?ipv4addr=ipv4addr&name=some.name&_proxy_search=GM
Note that ?ipv4addr=ipv4addr& should be ?ipv4addr=127.0.0.1&.
I haven't pinpointed the issue, but I suspect it's somewhere around here:
In 0.5.0:
In 0.5.1:
Note that
?ipv4addr=ipv4addr&
should be?ipv4addr=127.0.0.1&
.I haven't pinpointed the issue, but I suspect it's somewhere around here:
infoblox-client/infoblox_client/objects.py
Line 290 in bff3a66
Maybe
IP
should overrideto_dict
?The difference between 0.5.0 and 0.5.1 is likely due to 2e462ca:
Side note: why don't we use the
params
kwarg provided byrequests.post
?Workaround:
The text was updated successfully, but these errors were encountered: