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"}}}
Answer by Priyadarshi Ajitav Jena · Sep 10, 2020 at 06:31 AM
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/
Getting 502 Bad Request exception (Unexpected EOF) 1 Answer
Public facing API URL for OPDK 2 Answers
getting broken pipe error in system.log 1 Answer
management api alias 0 Answers
I need to read JSON data from .json file and store in JS variable 1 Answer