You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initiate a first approach for implementing a client API for OperatorFabric:
create a branch
merge proposed pull request
correct initial errors (see below)
write in README.me how to use it
add a compatibility matrix with tested version of operator-fabric-getting-started server
Last updated: 27th August 2024
Initial errors
OperatorFabric server used for testing: operator-fabric-getting-started server (branch: release4.2.0)
The server should be launched prior to testing and the examples should have been run without errors.
Use Python 3.10 and import the requirements.
Then execute the following actions to test opfab.send_card() function:
Actual status of identified errors when calling opfab.send_card() function:
Error01 - DONE- "Cannot invoke "java.util.List.stream()" - found a solution by changing the sending card url and correcting some default fields - see additional commit after merged pull request
Error02 - DONE- BAD_REQUEST ‘process and/or state does not exist’- found a solution by checking the existing of a bundle, process and perimeter for the version used in the card
Error03 - DONE- 301 Moved Permanently - found a solution by removing trailing `/ in nginx.conf
Error04 - DONE - no i18n translation for key=defaultProcess.title - found a solution by changing the keys used for summary and title to correspond to existing i18n values. Please notice that the i18.json file is not similar between the process version 1 and 2 and some keys do not exist in both versions.
Error01 - error when calling opfab.send_card() - Cannot invoke "java.util.List.stream()"
When sending card using defaultProcess values by using simple opfab.send_card() , the following results:
Content of the card sent:
Change post url from query_url = "cardspub/cards" to query_url = "cardspub/cards"
See additional commit after merged pull request
Error02 - BAD_REQUEST ‘process and/or state does not exist’
When sending a card, you may have the following error:
{"status":"BAD_REQUEST","message":"Impossible to publish card because process and/or state does not exist (process=defaultProcess, state=messageState, processVersion=2, processInstanceId=edf35784-e89a-40b2-94a8-fce4d8472428)"}
Error02 - Solution
Solution Error02: You should execute the example2 of getting started to create and push the version 2 of the bundles for process=defaultProcess or change default version by 1 into the default parameter of the function.
Verify existence of /cardspub/cards path in nginx.conf andcorrect nginx.conf by removing the last / in opfab-getting-started server configuration using the following:
Error04 - no i18n translation for key=defaultProcess.title
When sending card using defaultProcess.summary and defaultProcess.title, the following results:
Content of the card sent: see card in Error01
ERROR results of POST opfab card-publication url command:
{"status":"BAD_REQUEST","message":"Impossible to publish card : no i18n file for process=defaultProcess, processVersion=2 (processInstanceId=c5ab5a3b-52b0-4d85-978c-96e80e290e53)"}
Solution Error04
Change keys used for title and summary to correspond to actual i18n.json file settings:
Use for example "key": "message.summary" and "key": "message.title" for version 1.
Use for example "key": "defaultProcess.summary" and "key": "defaultProcess.title" for version 2.
Please notice that the i18.json file is not similar between the process version 1 and 2 and some keys are not present in both versions.
END of FILE.
The text was updated successfully, but these errors were encountered:
Initiate a first approach for implementing a client API for OperatorFabric:
Last updated: 27th August 2024
Initial errors
OperatorFabric server used for testing: operator-fabric-getting-started server (branch:
release4.2.0
)The server should be launched prior to testing and the examples should have been run without errors.
Use Python 3.10 and import the requirements.
Then execute the following actions to test opfab.send_card() function:
Actual status of identified errors when calling opfab.send_card() function:
i18.json
file is not similar between the process version 1 and 2 and some keys do not exist in both versions.Error01 - error when calling opfab.send_card() - Cannot invoke "java.util.List.stream()"
When sending card using defaultProcess values by using simple
opfab.send_card()
, the following results:Content of the card sent:
ERROR results of POST opfab card-publication url command:
error01_initial_error.log
Error01 - Solution
Change post url from
query_url = "cardspub/cards"
toquery_url = "cardspub/cards"
See additional commit after merged pull request
Error02 - BAD_REQUEST ‘process and/or state does not exist’
When sending a card, you may have the following error:
Error02 - Solution
Solution Error02: You should execute the example2 of getting started to create and push the version 2 of the bundles for process=defaultProcess or change default version by 1 into the default parameter of the function.
Error03 - 301 Moved Permanently
see logs in file
error03_301_moved_permanently.log
Error03 - Solution
Verify existence of
/cardspub/cards
path in nginx.conf andcorrect nginx.conf by removing the last/
in opfab-getting-started server configuration using the following:Error04 - no i18n translation for key=defaultProcess.title
When sending card using defaultProcess.summary and defaultProcess.title, the following results:
Content of the card sent: see card in Error01
ERROR results of POST opfab card-publication url command:
Solution Error04
Change keys used for title and summary to correspond to actual i18n.json file settings:
Please notice that the
i18.json
file is not similar between the process version 1 and 2 and some keys are not present in both versions.END of FILE.
The text was updated successfully, but these errors were encountered: