Skip Menu |

This queue is for tickets about the REST-Neo4p CPAN distribution.

Report information
The Basics
Id: 107881
Status: open
Priority: 0/
Queue: REST-Neo4p

People
Owner: maj.fortinbras [...] gmail.com
Requestors: Andy.Baumhauer [...] interactivedata.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Node creation fails on 2.3.0-M03 Community
Date: Tue, 20 Oct 2015 20:02:50 +0000
To: "bug-REST-Neo4p [...] rt.cpan.org" <bug-REST-Neo4p [...] rt.cpan.org>
From: "Baumhauer, Andy" <Andy.Baumhauer [...] interactivedata.com>
Code working on 2.2.5 Community no longer works with the latest beta code. Node creation sometimes fails with "No such file or directory". Example code: try { foreach my $property (@properties) { $node->set_property( { $property => $loc->$property } ) if ( defined $loc->$property ); } $node->set_property( { 'created' => $loc->created->iso8601 } ) if ( defined $loc->created ); $node->set_property( { 'updated' => $loc->updated->iso8601 } ) if ( defined $loc->updated ); $node->set_labels($label); } ## end try catch { $logger->warn( 'Error adding node: ' . $label . ':' . $loc->id . " because of $!" ); }; Log output from server: 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "POST /db/data/node HTTP/1.1" 201 1136 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/netcity HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/datacenter HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/address HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/area HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 3 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/lat HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 6 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/lon HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 7 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "GET /db/data/label/Node/nodes?fk=1280 HTTP/1.1" 200 2 "-" "Neo4p/0.3010" 2 ******************************************************* This message (including any files transmitted with it) may contain confidential and/or proprietary information, is the property of Interactive Data Corporation and/or its subsidiaries, and is directed only to the addressee(s). If you are not the designated recipient or have reason to believe you received this message in error, please delete this message from your system and notify the sender immediately. An unintended recipient's disclosure, copying, distribution, or use of this message or any attachments is prohibited and may be unlawful. *******************************************************
Subject: Re: [rt.cpan.org #107881] AutoReply: Node creation fails on 2.3.0-M03 Community
Date: Tue, 20 Oct 2015 20:16:44 +0000
To: "bug-REST-Neo4p [...] rt.cpan.org" <bug-REST-Neo4p [...] rt.cpan.org>
From: "Baumhauer, Andy" <Andy.Baumhauer [...] interactivedata.com>
Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'REST-Neo4p' version '0.3010' Unknown 'build_class', defaulting to 'Module::Build' [root@60632c178717<mailto:root@60632c178717> REST-Neo4p-0.3010]# make test /usr/bin/perl Build --makefile_env_macros 1 test t/0010_load.t ............... ok t/0011_parse.t .............. ok t/002_agent.t ............... 1/? # LWP::UserAgent # Mojo::UserAgent # HTTP::Thin t/002_agent.t ............... ok t/003_objs.t ................ ok t/0041_idx_create_unique.t .. ok t/004_idx.t ................. 1/68 # rt80440 t/004_idx.t ................. ok t/0051_handle.t ............. ok t/005_db.t .................. ok t/006_query.t ............... 26/? # rt80343 # Failed test 'right node' # at t/006_query.t line 101. # got: '146' # expected: '147' # Failed test 'got wilma (simple)' # at t/006_query.t line 102. # Structures begin differing at: # $got->{name} = 'Wilma' # $expected->{name} = 'Pebbles' # Looks like you failed 2 tests of 60. t/006_query.t ............... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/60 subtests t/007_accessors.t ........... ok t/008_batch_agent.t ......... ok t/009_batch.t ............... ok t/010_batch_synopsis.t ...... 1/? # this may take a while ... t/010_batch_synopsis.t ...... ok t/011_neo4p_synopsis.t ...... ok t/020_constraint.t .......... ok t/021_validation.t .......... ok t/022_constrain.t ........... ok t/023_constrain_synopsis.t .. ok t/030_idx_escape.t .......... ok t/040_v2_labels.t ........... ok t/041_v2_txns.t ............. ok t/050_v2_schema.t ........... ok t/097_parse_errors.t ........ # query endpoint Overriding non-existent method 'filename' at t/097_parse_errors.t line 27. Overriding non-existent method 'filename' at t/097_parse_errors.t line 31. t/097_parse_errors.t ........ 1/? # txn endpoint t/097_parse_errors.t ........ ok t/098_pod.t ................. skipped: Test::Pod 1.00 required for testing POD t/099_error.t ............... 1/? # rt91682 t/099_error.t ............... 16/? # rt80207 t/099_error.t ............... ok t/agent_mod.t ............... ok t/rt_80150.t ................ ok t/rt_80196.t ................ ok t/rt_80471.t ................ ok t/rt_81128.t ................ ok t/rt_90072.t ................ skipped: Test::CPAN::Changes required for this test t/rt_91640.t ................ 1/27 # use utf8 # no utf8 t/rt_91640.t ................ ok t/rt_91748.t ................ ok t/rt_92135.t ................ ok t/rt_96847.t ................ ok Test Summary Report ------------------- t/006_query.t (Wstat: 512 Tests: 60 Failed: 2) Failed tests: 39-40 Non-zero exit status: 2 Files=35, Tests=1923, 27 wallclock secs ( 0.35 usr 0.05 sys + 8.14 cusr 0.97 csys = 9.51 CPU) Result: FAIL Failed 1/35 test programs. 2/1923 subtests failed. Makefile:74: recipe for target 'test' failed make: *** [test] Error 255 On Tue, 2015-10-20 at 16:04 -0400, Bugs in REST-Neo4p via RT wrote: Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "Node creation fails on 2.3.0-M03 Community", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #107881]. Your ticket is accessible on the web at: https://rt.cpan.org/Ticket/Display.html?id=107881 Please include the string: [rt.cpan.org #107881] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-REST-Neo4p@rt.cpan.org<mailto:bug-REST-Neo4p@rt.cpan.org> ------------------------------------------------------------------------- Code working on 2.2.5 Community no longer works with the latest beta code. Node creation sometimes fails with "No such file or directory". Example code: try { foreach my $property (@properties) { $node->set_property( { $property => $loc->$property } ) if ( defined $loc->$property ); } $node->set_property( { 'created' => $loc->created->iso8601 } ) if ( defined $loc->created ); $node->set_property( { 'updated' => $loc->updated->iso8601 } ) if ( defined $loc->updated ); $node->set_labels($label); } ## end try catch { $logger->warn( 'Error adding node: ' . $label . ':' . $loc->id . " because of $!" ); }; Log output from server: 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "POST /db/data/node HTTP/1.1" 201 1136 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/netcity HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/datacenter HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/address HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 4 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/area HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 3 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/lat HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 6 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT /db/data/node/129/properties/lon HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 7 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "GET /db/data/label/Node/nodes?fk=1280 HTTP/1.1" 200 2 "-" "Neo4p/0.3010" 2 ******************************************************* This message (including any files transmitted with it) may contain confidential and/or proprietary information, is the property of Interactive Data Corporation and/or its subsidiaries, and is directed only to the addressee(s). If you are not the designated recipient or have reason to believe you received this message in error, please delete this message from your system and notify the sender immediately. An unintended recipient's disclosure, copying, distribution, or use of this message or any attachments is prohibited and may be unlawful. ******************************************************* ******************************************************* This message (including any files transmitted with it) may contain confidential and/or proprietary information, is the property of Interactive Data Corporation and/or its subsidiaries, and is directed only to the addressee(s). If you are not the designated recipient or have reason to believe you received this message in error, please delete this message from your system and notify the sender immediately. An unintended recipient's disclosure, copying, distribution, or use of this message or any attachments is prohibited and may be unlawful. *******************************************************
Thanks Andy, I just want to clarify the issue-- the code snippet is adding properties, but not creating a node. So you get the error (sometimes, not always) when calling one of set_property() or set_labels(), according to the snippet. Is that right? Can you share an example of the actual error? Mark On Tue Oct 20 16:04:30 2015, Andy.Baumhauer@interactivedata.com wrote: Show quoted text
> Code working on 2.2.5 Community no longer works with the latest beta > code. Node creation sometimes fails with "No such file or directory". > > Example code: > > try { > foreach my $property (@properties) { > $node->set_property( { $property => $loc->$property } ) if ( > defined $loc->$property ); > } > $node->set_property( { 'created' => $loc->created->iso8601 } ) if ( > defined $loc->created ); > $node->set_property( { 'updated' => $loc->updated->iso8601 } ) if ( > defined $loc->updated ); > $node->set_labels($label); > } ## end try > catch { > $logger->warn( 'Error adding node: ' . $label . ':' . $loc->id . " > because of $!" ); > }; > > Log output from server: > > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "POST /db/data/node > HTTP/1.1" 201 1136 "-" "Neo4p/0.3010" 4 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/netcity HTTP/1.1" 204 0 "-" > "Neo4p/0.3010" 4 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/datacenter HTTP/1.1" 204 0 "-" > "Neo4p/0.3010" 4 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/address HTTP/1.1" 204 0 "-" > "Neo4p/0.3010" 4 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/area HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 3 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/lat HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 6 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "PUT > /db/data/node/129/properties/lon HTTP/1.1" 204 0 "-" "Neo4p/0.3010" 7 > 172.17.0.4 - - [20/Oct/2015:19:08:02 +0000] "GET > /db/data/label/Node/nodes?fk=1280 HTTP/1.1" 200 2 "-" "Neo4p/0.3010" 2 > > > ******************************************************* > This message (including any files transmitted with it) may contain > confidential and/or proprietary information, is the property of > Interactive Data Corporation and/or its subsidiaries, and is directed > only to the addressee(s). If you are not the designated recipient or > have reason to believe you received this message in error, please > delete this message from your system and notify the sender > immediately. An unintended recipient's disclosure, copying, > distribution, or use of this message or any attachments is prohibited > and may be unlawful. > *******************************************************