Problème importation de x3 vers web scheduling

Bonjour,
lors de l'importation de "plant" de sage x3 vers web scheduling via Analytics j'ai rencontré un problème dans le fichier FR012.json "{ "repos": [invalid authentication method: bearer]}"

voici le fichier log : 

[18/01/2022 03:31:32]Service Started
[18/01/2022 03:31:32]Reading Configuration file...
[18/01/2022 03:31:32]Configuration file read correctly
[18/01/2022 03:31:32]Connecting to NICIM Database...
[18/01/2022 03:31:32]Connection established
[18/01/2022 03:31:57]Creating Json...
[18/01/2022 03:31:57]URL: srv-sagex3:8124/.../GFSENV('FR012')
[18/01/2022 03:31:57]Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: i. Path 'repos', line 1, position 12.
à Newtonsoft.Json.JsonTextReader.ParseValue()
à Newtonsoft.Json.JsonTextReader.Read()
à Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
à Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
à Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
à Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
à Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
à INTERFACE_SAGE_SERVICE.Service1.OnTimedEvent(Object source, ElapsedEventArgs e)

  • Hi,

    Do you added bearer as authenitcation type in your nodelocal.js ?

    auth: [
    "basic",
    "oauth2",
    "bearer"

  • Once you have updated the authentication setting in Syracuse, do a global validation on representation GFSENV and GFSENVUPD.

  • in reply to Mikael

    Thank you, it works now 

  • de ma part, l'interface REST de web scheduling affiche

    Response received from Sage X3.
    [1/14/2024 9:08:35 PM][DEBUG] -> Response info: Status Code => InternalServerError, Length => 23, Partial Time => 0.34212s Accumulated Time => 0.34212s, Info => Starting GET
    End of GET

    [1/14/2024 9:08:35 PM][DEBUG] -> Response Content: Error 21: Invalid token
    [1/14/2024 9:08:35 PM][DEBUG] -> All Responses Content: Error 21: Invalid token
    [1/14/2024 9:08:35 PM][DEBUG] -> Json Content: {"repos": [Error 21: Invalid token]}
    [1/14/2024 9:08:35 PM][CRITICAL] -> An error has occured when executing the integration with sage X3: Unexpected character encountered while parsing value: E. Path 'repos', line 1, position 11.