https://dagster.io/ logo
#announcements
Title
# announcements
m

Mose

09/03/2020, 4:06 PM
Hi - Can you please explain this error for me or point me to a previous response?
Copy code
dagster.check.ParameterCheckError: Param "msg" is not a str. Got {'id': 'sofijlaksdjfow', 'fields': {'id': 1, 'name': 'tester'}, 'createdTime': '2020-08-21T21:37:44.000Z'} which is type <class 'dict'>.
Here is the solid:
Copy code
@solid 
def get_lead_parameters(context):
    lst = []
    responses = json.loads(requests.get('')['data']
    for res in responses:
        lst.append(res)
   return lst
And the above error is printed. This is the first solid and the next one just takes the list of dict . Thanks
The api code is not the issue...I left it blank...no issue with it. The data is fetched properly.
a

alex

09/03/2020, 4:16 PM
do you have the stack trace? based on the error message it looks like an invocation to
context.log
with a dict instead of a string
🙌 1
m

Mose

09/03/2020, 5:12 PM
You are right...I was trying to log the response for other purpose. Thanks, I have now no error.
9 Views