Skip to main content

Error creating a job

  • January 19, 2022
  • 10 replies
  • 10 views

Forum|alt.badge.img+7

Dear Community,

Please has anyone come across this error below before while trying to create a job?

10 replies

Forum|alt.badge.img+7
  • Author
  • New Member
  • January 24, 2022

[20:40:21,000 INFO] ================= Main - Param Init =================
STDOUT:
Aug 08, 2021 @ 20:40:21.041
================= Main - Param Init =================
STDERR:
Traceback (most recent call last):
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/Siemplify.py", line 637, in validate_siemplify_error
response.raise_for_status()
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/ElasticSearch_V31.0/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://localhost:443/api/external/v1/sdk/configuration/INTEGRATION_NAME?format=snake

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/ElasticSearch_V31.0/3gwwq410.a5y/liamhrt4.l5m.py", line 123, in <module>
main()
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/SiemplifyUtils.py", line 78, in wrapper
return func(*args, **kwargs)
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/ElasticSearch_V31.0/3gwwq410.a5y/liamhrt4.l5m.py", line 25, in main
conf = siemplify.get_configuration('INTEGRATION_NAME')
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/SiemplifyJob.py", line 28, in get_configuration
return super(SiemplifyJob, self).get_configuration(provider, environment, integration_instance)
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/Siemplify.py", line 550, in get_configuration
self.validate_siemplify_error(response)
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/Siemplify.py", line 639, in validate_siemplify_error
raise Exception("{0}: {1}".format(e, response.content))
Exception: 500 Server Error: Internal Server Error for url: https://localhost:443/api/external/v1/sdk/configuration/INTEGRATION_NAME?format=snake : b'{"ErrorCode":2000,"ErrorMessage":"Integration settings for [Identifier: INTEGRATION_NAME] could not be found because the integration instance is missing.","InnerException":null,"InnerExceptionType":null}'


Forum|alt.badge.img+7
  • Author
  • New Member
  • January 24, 2022

This is the part i picked out below but obviously i specified the Integration name and it is configured

b'{"ErrorCode":2000,"ErrorMessage":"Integration settings for [Identifier: INTEGRATION_NAME] could not be found because the integration instance is missing.",


Forum|alt.badge.img+3
  • New Member
  • January 24, 2022

I have gotten this error when making a custom job that I coded before when using siemplify = SiemplifyAction() instead of siemplify = SiemplifyJob() . This problem is generally because Jobs are not at all aware of their Integration Instance, and dont easily have access to those parameters, but Actions do. When SiemplifyAction is instantiated it automatically reaches out to get the integration instance info, which as a Job it doesnt have access to.


Forum|alt.badge.img+7
  • Author
  • New Member
  • January 24, 2022

Yeah, you are right.


Forum|alt.badge.img+3
  • New Member
  • January 25, 2022

sorry for the delayed response but I hope this helps


Forum|alt.badge.img+7
  • Author
  • New Member
  • January 25, 2022

@JoshShomo Thanks for your response, i am using the SiemplifyJob() and i have verified i configure all correctly but not sure why it is still giving the error


Forum|alt.badge.img+7
  • Author
  • New Member
  • January 25, 2022

Forum|alt.badge.img+7
  • Author
  • New Member
  • January 25, 2022

@JoshShomo , did some more trials and noticed that if the integration is configured in default or in a defined environment, that is when it gives the error, but when configured in shared instance, it works as expected


Forum|alt.badge.img+7
  • Author
  • New Member
  • January 25, 2022

Need to find out why that's the case


Forum|alt.badge.img+2

Just lost an entire afternoon on this. Yeah. Using Shared instead of Default works.