Comments (6)
It looks like an index.json
file of one of the packages is corrupted.
For example, the expected content should be
{
"License": {...},
"UsedBy": [...],
"Licenses": [...]
}
but for some reason (e.g. manual editing) according to the exception details the content looks something like this
[
{
"License": {...},
"UsedBy": [...],
"Licenses": [...]
}
]
To resolve the issue, the contents of index.json
should be fixed manually, or alternatively, remove the package folder with index.json
from the repository and run the update again.
Especially for this ticket I release version 3.4.1, where the exception should contain the full package name with an invalid index.json
Failed to deserialize contents of index.json of package npmjs.com/bootstrap/4.6.1. System.InvalidOperationException: Failed to deserialize contents of index.json of package npmjs.com/bootstrap/4.6.1. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'ThirdPartyLibraries.Repository.Template.LibraryIndexJson' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
from thirdpartylibraries.
This error occurs after a large output of
Valid reference **** from *****
and then a few
The nuget.org ******* VVVV has been completely removed from the repository
from thirdpartylibraries.
Turns out it was:
Failed to deserialize contents of index.json of package npmjs.com/babel-jest/22.4.4/node_modules/spdx-exceptions.
the index.json
files I see are just a strict array of package names, no other meta is mentioned in them for this specific library
example
[
"389-exception",
"Autoconf-exception-2.0",
"Autoconf-exception-3.0",
"Bison-exception-2.2",
"Bootloader-exception",
"Classpath-exception-2.0",
"CLISP-exception-2.0",
"DigiRule-FOSS-exception",
"eCos-exception-2.0",
"Fawkes-Runtime-exception",
"FLTK-exception",
"Font-exception-2.0",
"freertos-exception-2.0",
"GCC-exception-2.0",
"GCC-exception-3.1",
"gnu-javamail-exception",
"GPL-3.0-linking-exception",
"GPL-3.0-linking-source-exception",
"GPL-CC-1.0",
"i2p-gpl-java-exception",
"Libtool-exception",
"Linux-syscall-note",
"LLVM-exception",
"LZMA-exception",
"mif-exception",
"Nokia-Qt-exception-1.1",
"OCaml-LGPL-linking-exception",
"OCCT-exception-1.0",
"OpenJDK-assembly-exception-1.0",
"openvpn-openssl-exception",
"PS-or-PDF-font-exception-20170817",
"Qt-GPL-exception-1.0",
"Qt-LGPL-exception-1.1",
"Qwt-exception-1.0",
"Swift-exception",
"u-boot-exception-2.0",
"Universal-FOSS-exception-1.0",
"WxWindows-exception-3.1"
]
from thirdpartylibraries.
npmjs.com/babel-jest/22.4.4/node_modules/spdx-exceptions
node_modules
in the path looks strange. ThirdPartyLibraries can only create package folders in their repository, such as npmjs.com/babel-jest/22.4.4
.
Where did the sub-folder node_modules/spdx-exceptions
come from?
from thirdpartylibraries.
npm install && npm dedupe
command is a likely culprit
from thirdpartylibraries.
I recommend having 2 separate folders for the source code and the ThirdPartyLibraries repository like in this repo:
/path/sources
-- ...
-- babel-jest # structure under the control of npm
---- 22.4.4
------ index.json # npm index file
------ node_modules
-------- ...
/path/third-party-libraries # structure under the control of ThirdPartyLibraries
-- configuration
-- licenses
-- packages
---- npmjs.com
------ babel-jest
-------- 22.4.4
---------- index.json # tpl index file
ThirdPartyLibraries expects the repository
folder to be under its complete control.
from thirdpartylibraries.
Related Issues (15)
- Getting error looking for Chef cookbooks (nodejs_test) when running `Update-ThirdPartyLibrariesRepository` HOT 3
- Linux Support HOT 4
- Feature Request: Ability to consolidate reports from multiple repositories/sources HOT 1
- License Link in Report - Shouldn't it link to the published license for the Library HOT 4
- How to prevent - Target net20 not found - on Win 10 with .net 3.5 Feature enabled HOT 5
- npm ArgumentNullException : Value cannot be null. (Parameter 'version') HOT 1
- Make github "Forbidden: rate limit exceeded" more informative HOT 1
- Export to CSV Instead of readme.ms HOT 3
- CI build HOT 1
- Packages from Private GitHub package repos are being reported with `nuget.org` Fake URLs HOT 4
- .net 6.0 support HOT 1
- Command line tool net5.0 out of support HOT 1
- "Dedicated To The Public Domain" License is broken into 5 different licenses HOT 1
- License could not be resolved from https://raw.github.com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thirdpartylibraries.