SDK - error in createOnlineWorkingCopy()?

0
When I try to create an OnlineWorkingCopy through the model SDK, I get an error. I have the following code in my script.js file: console.log('starting...') client.platform().createOnlineWorkingCopy(project, revision) I create the project and revision as follows: import {MendixSdkClient, Project, Revision, Branch} from 'mendixplatformsdk'; const username = '#userName'; const apikey = '#APIKey'; const projectName = '#projectName'; const projectId = '#projectGUID'; const revNo = -1; const branchName = null; export function getProject(): Project { return new Project(getClient(), projectId, projectName); } export function getRevision(): Revision { return new Revision(revNo, new Branch(getProject(), branchName)) } export function getClient(): MendixSdkClient { return new MendixSdkClient(username, apikey); }   Somehow, this throws an error, the log from command prompt: D:\Workspace SDK\Project>node script.js starting... Creating new online working copy for project #projectGUID# : #projectName# Something went wrong: 'com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRunt imeException: com.mendix.systemwideinterfaces.MendixRuntimeException: communityc ommons.UserThrownException: 49d99b80-23a5-458d-abf7-ea1e2eff8082: Failed to expo se Team Server project revision as Online Working Copy: #projectGUID# Details: com.mendix.modules.microflowengine.MicroflowException: com .mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntime Exception: java.lang.RuntimeException: Unable to parse HTTP response: Broken pip e\n\n\tat ModelApiClient.CreateModelApiWorkingCopy (JavaAction : \'CreateModelAp iWorkingCopy_Java\')\n\tat MpkUploadService.TransferTeamServerMpkToModelServer_W rappedWithWorkingDir (SubMicroflow : \'CreateModelApiWorkingCopy\')\n\tat MpkUpl oadService.TransferTeamServerMpkToModelServer (SubMicroflow : \'TransferTeamServ erMpkToModelServer_WrappedWithWorkingDir\')\n\nAdvanced stacktrace:\n\tat PCP_Pr ojectsAPI.ExposeTeamServerRevisionAsOnlineWorkingCopy (JavaAction : \'ThrowExcep tion\')\n\nAdvanced stacktrace:' D:\Workspace SDK\Project> I am using the following versions: "dependencies": { "mendixmodelsdk": "^2.6.0", "mendixplatformsdk": "^2.0.0", "when": "^3.7.7" } I do see a use of my API key in my profile. Is this a known issue, or is there a workaround?
asked
1 answers
0

Yesterday, there was a connection issue in the underlying service of the SDK.

We've solved the issue so your script should work again.

answered