Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Unable to run http-api tests #1204

Closed
Closed
@JonKrone

Description

@JonKrone
  • Version:
js-ipfs version: 0.27.7
Repo version: 6
System version: x64/win32
Node.js version: v8.5.0
  • Platform: MINGW64_NT-10.0 2.9.0(0.318/5/3) x86_64 Msys
  • Subsystem: js-ipfs-api?

Type: Question / bug

Severity: Medium

Description:

Unable to run js-ipfs/http-api tests. Seems only to happen with tests - I haven't run into any issues with regular jspfs commands.

Relevant error seems to be:
: The filename, directory name, or volume label syntax is incorrect. Error: IO error: C:\Projects\js-ipfs\test\repo-tests-run\datastore/MANIFEST-000014

Steps to reproduce the error:

DEBUG=repo* npm run test:node:http.

I think this is a Windows-only issue, would like verification though.

Sample output:

$ DEBUG=repo* npm run test:node:http                                                                                                                    
                                                                                                                                                        
> [email protected] test:node:http C:\Projects\js-ipfs                                                                                                        
> aegir test -t node -f test/http-api/index.js                                                                                                          
                                                                                                                                                        
Test Node.js                                                                                                                                                                                                                                                                                                  
                                                                                                                                                        
  HTTP API                                                                                                                                              
...
2018-02-05T15:53:37.727Z repo creating datastore                                                                                                        
2018-02-05T15:53:37.737Z repo creating blocks                                                                                                           
2018-02-05T15:53:37.739Z repo created blocks                                                                                                            
: The filename, directory name, or volume label syntax is incorrect. Error: IO error: C:\Projects\js-ipfs\test\repo-tests-run\datastore/MANIFEST-000014 
                                                                                                                                                        
    1) "before all" hook                                                                                                                                

...
                                                                                                                               
  1) HTTP API                                                                                                                                           
       "before all" hook:                                                                                                                               
: The filename, directory name, or volume label syntax is incorrect.ts-run\datastore/MANIFEST-000014                                                    
                                                                                                                                                        
      at node_modules\levelup\lib\levelup.js:117:34                                                                                                     
      at node_modules\leveldown\node_modules\abstract-leveldown\abstract-leveldown.js:40:16                                                             ```

For some reason (I think for non-TTY terminal reasons), the error output is truncated on the line just above the stacktrace. The relevant error is right above the 1) "before all" hook line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions