-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
ConvertFrom-Json : Invalid JSON primitive: .
#16
Comments
Thanks for the report. Could you please provide your |
I am also getting the same error, API token is added. my setttings.ps1 is here: https://gist.github.com/MetaverseRPN/de37892b5eefcc4981cda3f229c58cfc
|
Any chance you have a the returned error in english? 😅 |
I do. Here it is:
Edit: only took 5 tries to get that codeblocked correctly |
Thank you kindly. Do you also have the output just prior to this? I'm looking for something like this:
|
Is this what you are looking for? |
It is indeed. Odd, that looks perfectly valid. |
Im trying for the 3rd time but it seems I am getting this error every time I try |
Yes, i tried different time a day and same error. |
Hmm alright. Could you please try replacing the setting of the Change this: $CLIENT_METADATA =
"{
changelog: `'$CLIENT_CHANGELOG`',
changelogType: `'$CLIENT_CHANGELOG_TYPE`',
displayName: `'$CLIENT_FILE_DISPLAY_NAME`',
gameVersions: [$GAME_VERSIONS],
releaseType: `'$CLIENT_RELEASE_TYPE`'
}" to this: $CLIENT_METADATA = @{
changelog = $CLIENT_CHANGELOG
changelogType = $CLIENT_CHANGELOG_TYPE
displayName = $CLIENT_FILE_DISPLAY_NAME
gameVersions = $GAME_VERSIONS
releaseType = $CLIENT_RELEASE_TYPE
} | ConvertTo-Json |
Trying it now |
um.... Ok this is a new one.....
|
Yikes. CurseForge still dislikes normal JSON I guess :P Please revert that change, and make this change instead: Change: -F metadata=$CLIENT_METADATA to -F metadata=([System.Text.Encoding]::UTF8.GetBytes($CLIENT_METADATA )) |
I tried this. After uploading progress bar, slowly got similar messages ######################################################################## 100,0%
curl: (6) Could not resolve host: 123
curl: (6) Could not resolve host: 13
curl: (6) Could not resolve host: 10
curl: (6) Could not resolve host: 32
curl: (6) Could not resolve host: 32
curl: (6) Could not resolve host: 32
curl: (6) Could not resolve host: 32
curl: (6) Could not resolve host: 32 |
Oh woops, I think it should've been: |
The argument "bytes" cannot be converted, with the value: "{
changelog: 'The Changelog is currently being written, please ignore.',
changelogType: 'markdown',
displayName: 'E2E-Extended v0.56.0',
gameVersions: [6756],
releaseType: 'beta'
}", for "GetString" into type "System.Byte[]": "Cannot convert value "{
changelog: 'The Changelog is currently being written, please ignore.',
changelogType: 'markdown',
displayName: 'E2E-Extended v0.56.0',
gameVersions: [6756],
releaseType: 'beta'
}" в тип "System.Byte[]". Error: "Cannot convert value "{
changelog: 'The Changelog is currently being written, please ignore.',
changelogType: 'markdown',
displayName: 'E2E-Extended v0.56.0',
gameVersions: [6756],
releaseType: 'beta'
}" в тип "System.Byte". Ошибка: "The input string was in the wrong format."""
D:\mc_client\Instances\Enigmatica2Expert - Extended\modpackUploader\modpack-uploader.ps1:238 знак:9
+ $response = curl.exe `
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
Failed to upload client files:
Failed to upload client files:
D:\mc_client\Instances\Enigmatica2Expert - Extended\modpackUploader\modpack-uploader.ps1:252 знак:13
+ throw "Failed to upload client files: $response"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to upload client files: :String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to upload client files: |
Actually, try removing the |
Did you try this fix as well? #16 (comment) |
Yes, same error as in #16 (comment)
|
Damn, I'll think on it some more then, and try to reproduce it some more. |
removing the ' fixed it for me, but now I have a completely different issue I'm running into. The manifest that the modpackuploader.ps1 is generating is referencing two mods that are most certainly not in my pack, causing a invalid manifest error: https://cflookup.com/462460?fileId=3253803 https://cflookup.com/446346?fileId=3202390
|
Modpack Version
Describe your issue.
I setup
settings.ps1
matching my pack options.I skip all parts except actual uploading on CF.
When i lunch
modpack-uploader.ps1
i see this:Seems like something wrong with CF output.
Error:
I tried to redirect output of
curl.exe
in file:Opening
out.html
i see this:Why this happen? How to fix that?
Crash Report
No response
Latest Log
No response
Have you modified the modpack?
No
User Modifications
No response
Did the issue happen in singleplayer or on a server?
Both
The text was updated successfully, but these errors were encountered: