Skip to content

ConvertFrom-Json : Invalid JSON primitive: . #16

@Krutoy242

Description

@Krutoy242

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:

Code_3qMrNWMwIv

Seems like something wrong with CF output.
Error:

ConvertFrom-Json : Недопустимый примитив JSON: .
D:\mc_client\Instances\Enigmatica2Expert - Extended\modpackUploader\modpack-uploader.ps1:245 знак:30       
+             --progress-bar | ConvertFrom-Json
+                              ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
 
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: 

I tried to redirect output of curl.exe in file:

- --progress-bar | ConvertFrom-Json
+ > out.html

Opening out.html i see this:

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions