Dataiku API error
ludim
Registered Posts: 1 ✭
I've been using dataiku Python API to copy recipes into new ones with new inputs and outputs, it had been working fine, but, suddenly, the API sent this error:
DataikuExceptionTraceback (most recent call last) <ipython-input-14-039f4d7c3f1e> in <module>() 1 for nueva_receta,nueva_salida,entrada in zip(lista_nuevas_recetas,lista_salidas,lista_entradas): ----> 2 duplicate_recipe(project,"compute_BAJAS_256_202105_SQL_0_g_1_1_2_1_1_2_3",nueva_receta,entrada,nueva_salida) 3 print(nueva_receta+" creada") 4 print("") 5 #def duplicate_recipe(project_object, exist_name, new_name,input_name,output_name): <ipython-input-6-df3876c9cc94> in duplicate_recipe(project_object, exist_name, new_name, input_name, output_name) 20 builder_object = project_object.new_recipe(exist_settings.type, new_name).with_new_output(output_name, 'BimboS3', override_sql_schema=None, partitioning_option_id=None, append=False, object_type='DATASET', overwrite=True).with_input(input_name) 21 ---> 22 new_object = builder_object.create() 23 24 new_settings = new_object.get_settings() /home/dataiku/dataiku-dss-8.0.0/python/dataikuapi/dss/recipe.pyc in create(self) 609 """ 610 self._finish_creation_settings() --> 611 return self.project.create_recipe(self.recipe_proto, self.creation_settings) 612 613 def set_raw_mode(self): /home/dataiku/dataiku-dss-8.0.0/python/dataikuapi/dss/project.pyc in create_recipe(self, recipe_proto, creation_settings) 1037 definition = {'recipePrototype': recipe_proto, 'creationSettings' : creation_settings} 1038 recipe_name = self.client._perform_json("POST", "/projects/%s/recipes/" % self.project_key, -> 1039 body = definition)['name'] 1040 return DSSRecipe(self.client, self.project_key, recipe_name) 1041 /home/dataiku/dataiku-dss-8.0.0/python/dataikuapi/dssclient.pyc in _perform_json(self, method, path, params, body, files, raw_body) 985 986 def _perform_json(self, method, path, params=None, body=None,files=None, raw_body=None): --> 987 return self._perform_http(method, path, params=params, body=body, files=files, stream=False, raw_body=raw_body).json() 988 989 def _perform_raw(self, method, path, params=None, body=None,files=None, raw_body=None): /home/dataiku/dataiku-dss-8.0.0/python/dataikuapi/dssclient.pyc in _perform_http(self, method, path, params, body, stream, files, raw_body) 976 except ValueError: 977 ex = {"message": http_res.text} --> 978 raise DataikuException("%s: %s" % (ex.get("errorType", "Unknown error"), ex.get("message", "No message"))) 979 980 def _perform_empty(self, method, path, params=None, body=None, files = None, raw_body=None): DataikuException: com.dataiku.dip.exceptions.DSSInternalErrorException: Internal error
The code that I have been using to copy my recipes is the one provided by @Marlan
in this post, I simply added the new inputs and outputs to my code
Operating system used: Windows
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,167 Neuron
Hi, the error trace you posted is the client side. You need to go and check the corresponding server side error on the backend.log. That should give you an idea of what the problem is.