We are calling python from api proxy. We have referenced python modules under apigee thirdparty folder. But it's still throws below error. Not sure what's wrong.
Sample Script:
import json
print "testing"
Error:
{"fault":{"faultstring":"Evaluation of script testing.py (py) failed with reason: \"AttributeError: 'str' object has no attribute 'format'\"","detail":{"errorcode":"steps.script.ScriptEvaluationFailed"}}}
Hi, this is a known issue in python and resolves in a higher 2.7 version.
ref: https://www.reddit.com/r/learnpython/comments/3xuqqe/help_str_object_has_no_attribute_format/
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |