Getting "Classification failed for host xxx-test.apigee.net" when executing java callout policy

Not applicable

Hello,

After following instructions from the document link ::

http://apigee.com/docs/api-services/reference/java-callout-policy

when i deploy i the Jar I get the following error ::

 File "../../tools/deploy.py", line 113
    print 'Environment: %s' % d['environment']
                          ^
SyntaxError: Missing parentheses in call to 'print'
If 'State: deployed', then your API Proxy is ready to be invoked.
Run 'invoke.sh'

and when i invoke i get the following error ::

{"fault":{"faultstring":"Classification failed for host xxx-test.apigee.net","detail":{"code":"CLASSIFICATION_FAILED"}}}

I have some questions regarding this ::

1 > From where can we know the 'State:deployed' or not.

2 > When we get the classification_failed error.

3 > After successful deployment can we see anything in the UI (Listing of the api-proxy deployed).

Solved Solved
0 1 615
1 ACCEPTED SOLUTION

Not applicable

Hi,

Sorry it was my bad ,I found that i was using python 3 instead of python 2 , which requires

print("Hello world") 

instead of

print 'Hello world'

likewise there was some code in tools/deploy.py which require python 2. So i changed python 2 instead Python 3.

View solution in original post

1 REPLY 1

Not applicable

Hi,

Sorry it was my bad ,I found that i was using python 3 instead of python 2 , which requires

print("Hello world") 

instead of

print 'Hello world'

likewise there was some code in tools/deploy.py which require python 2. So i changed python 2 instead Python 3.