#

Error: Server relative urls must start with SPWeb.ServerRelativeUrl

 

making HttpClient request in queryable [400] Bad Request  System.ArgumentException

 

sp.web.getFolderByServerRelativeUrl("/Ergebnisdokumente").files.add(file.namefiletrue).then(x => {

                    console.log("Progress ...");

                    UploadDocument.Me.setState({ waitHidden: true });

                });

 

 

 

Error: Error making HttpClient request in queryable [400] Bad Request ::> {"odata.error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"de-DE","value":"Server relative urls must start with SPWeb.ServerRelativeUrl"}}}

 

Lösung:

Man muss das führende / Frontslash im Pfad entfernen also von /RelativeFolder zu RelativFolder

 

sp.web.getFolderByServerRelativeUrl("Ergebnisdokumente").files.add(file.namefiletrue).then(x => {

                    console.log("Progress ...");

                    UploadDocument.Me.setState({ waitHidden: true });

                });

 

 

Mobile

.

123movies