-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found class name null or empty #116
Comments
Hello @tommykennedy, do you get the same with OrientDB 2.0.x? Sails-orientDB does not support OrientDB 2.1 yet, check #52. |
No I checked it on 2.0.5-snapshot and it also came up with the error. Is there a problem with passing in a Javascript Object to the create method? Is it expecting a string? |
There shouldn't be as sails-orientdb passes the json type test which is not too different from what you are doing. Is this schemaful or schemaless btw? |
The Answer model is defined as
so I would say Schemaful if my understanding is correct. |
BTW, this is probably not the cause of your issue but the |
I commented out the identity tags and that didn't make a difference. I have attached both models. They are joined by an edge relationship. I think this is where the issue lies. Found class name null or empty is still coming up and the edge does not get created. Answer
and Question
I enabled Oriento Logging and the output gives. executing query against db waterlineTest: INSERT INTO Answer SET Answer = :paramAnswer0, createdAt = :paramcreatedAt1, updatedAt = :paramupdatedAt2 |
@tommykennedy, would you mind submitting a PR with a test? You can use 105-delete_customPK.js as a template. |
I haven't written any tests before but now is the time to learn. Let me look at the template and attempt it. Are there any docs? |
Hi Dario, I have submitted a failing test. Tom |
… it's null or empty to allow user's submitted classes
appscot#116: attempt to fix error on edge creation
Fixed via #119. |
Hi Dario,
I am running the following code below on sails-orientdb v0.10.55. I get the error below. I have played around with the answer variable and the length of the object name seems to cause it. The Answer parameter is of type JSON.
OrientDB Server v2.1-rc4
Oriento 1.1.3
Any ideas?
Tom
Error (E_UNKNOWN) :: Encountered an unexpected error
OrientDB.RequestError: Found class name null or empty
From previous event:
From previous event:
From previous event:
From previous event:
Details: OrientDB.RequestError: Found class name null or empty
The text was updated successfully, but these errors were encountered: