cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
424
Views
0
Helpful
2
Replies

Moquery invalid token error.

Oger1234
Level 1
Level 1

Hi

Has anyone ever had this issue on ACI , on a number of moquery's I get the following from APIC command line, I've used this many times on other APIC's.

moquery -c faultInst
Error: not well-formed (invalid token): line 1, column 32998

moquery -c fvRsPathAtt
Error: not well-formed (invalid token): line 1, column 1378800

I get a similar error through the ACI cobra SDK, the APIC is on version 5.2(3g).

Warm Regards

Francois.

 

2 Replies 2

Robert Burns
Cisco Employee
Cisco Employee

This type of error is usually a result of Invalid Characters being assigned to objects.  I imagine you're using the SDK to create/edit objects?  The UI will enforce character validation, but there are other means to assign invalid characters to objects which can raise this issue.   Typically look at things like interface description etc which are commonly configured with unsupported characters through non-UI methods.

Try the same class lookup using visore.  You might find some clues if it returns objects - look for special characters such as quotes (") in any of the properties.

Robert

Hi Robert.

I've tried both a local account admin and the admin account, as a further investigation I've also tried the following with a local admin account:

https://10.x.y.z/api/node/class/fvStPathAtt.xml

XML Parsing Error: not well-formed

https://10.x.y.z/api/node/class/fvStPathAtt.json

SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 453821 of the JSON data

Both giving errors it also fails on faultInst which , is probably not configuration related.

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License