FIWARE-TMForum / Business-API-Ecosystem

The FIWARE/TMForum Business API Ecosystem allows the monetization of different kind of assets (both digital and physical) during the whole service life cycle, from offering creation to its charging, accounting and revenue settlement and sharing
https://business-api-ecosystem.rtfd.io/
GNU Affero General Public License v3.0
39 stars 22 forks source link

The offering X has not been previously registered #31

Closed emepetres closed 5 years ago

emepetres commented 6 years ago

When trying to checkout and order, we are now receiving this error message: The offering X has not been previously registered. -> https://github.com/MSO4SC/MSOPortal/issues/126

Any hint on what could be happening? This was working a couple of weeks ago, no modifications on the setup (using develop version & docker compose).

The proxy log (charging, apis or database containers doesn't show any error):

2018-07-06 09:15:56.161  - INFO: TMF - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Pre-Validation (DSProductOrdering): OK
2018-07-06 09:15:56.568  - INFO: Server - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - request without authentication
2018-07-06 09:15:56.572  - INFO: TMF - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Pre-Validation (DSProductCatalog): OK
2018-07-06 09:15:56.620  - INFO: TMF - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Post-Validation (DSProductCatalog): OK
2018-07-06 09:15:56.626  - INFO: Server - 81ef0a53-68ee-4051-993e-abe0ea784727 - ::ffff:172.18.0.7 - Anonymous - GET: /DSProductCatalog/api/catalogManagement/v2/catalog/4/productOffering/7 - Status: 200
2018-07-06 09:15:56.793  - WARN: TMF - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Post-Validation (DSProductOrdering): The offering 7 has not been previously registered
2018-07-06 09:15:56.798  - WARN: Server - 424efdd7-f4d3-4324-a8c9-a92e953b628b - ::ffff:79.156.187.115 - 21b177ff-a8a6-480b-881c-df26f411b7f1 - POST: /DSProductOrdering/api/productOrdering/v2/productOrder - Status: 400
fdelavega commented 6 years ago

That error means that the charging backend component (the one who process payments and manages digital assets, etc) do not have the offering reference. This reference is created during offering creation as part of the validation process.

Did you reset the MongoDB database of the charging? It seems that the information of the different databases is not syncronized

fdelavega commented 5 years ago

I am closing this one as we fixed the deployment problem offline