Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error when approving/decline shipment #71

Open
FredrikMWold opened this issue Apr 24, 2023 · 1 comment
Open

bug: Error when approving/decline shipment #71

FredrikMWold opened this issue Apr 24, 2023 · 1 comment

Comments

@FredrikMWold
Copy link
Contributor

When approving or declining a shipment the api gives the error 400:

{
    "error": [
        "You do not have access to save from this plant"
    ]
}

The user that did the request does have access to the given plant as i gets returned in the /userinfo request

request used:

shipment: {"type":"wellstartup","title":"Test","waterAmount":1000,"shipmentParts":[{"water":1000,"shipped":"2023-04-21T00:00:00+02:00"}],"containsChemicals":true,"hasOilEmulsions":false,"hasHighParticleAmount":false,"containsBiocides":true,"availableForDailyContact":true,"volumeHasBeenMinimized":true,"volumeHasBeenMinimizedComment":"","comments":[],"chemicals":[{"id":"8ca93bba-f05b-4cf6-abd2-9c9d57003cf7","amount":10,"measureUnit":"tonn"},{"id":"764f2b3b-e7c4-499b-8073-612c415f09ef","amount":100,"measureUnit":"kg"},{"id":"afe2ae56-e14a-4b1c-9d21-576c18882647","amount":20,"measureUnit":"tonn"},{"id":"06144ab1-27b0-422a-8a3e-7141194c6bae","amount":9,"measureUnit":"tonn"}],"precautions":"fghhfg","rinsingOffshorePercent":1,"plannedExecutionFrom":"2023-04-21T00:00:00.000Z","plannedExecutionTo":"2023-04-21T00:00:00.000Z","well":"vbnnbv","attachments":[],"ra226":2,"ra228":1,"pb210":2,"id":"bb715a94-3415-4296-aa64-31a8aca02648","code":null,"sender":{"id":"b10fc741-ebe3-45c1-bc70-8eca5ba5cf03","code":"Brage","name":"Brage"},"senderId":"b10fc741-ebe3-45c1-bc70-8eca5ba5cf03","receiver":{"terms":"<i><p><strong>Notification regarding off-spec oil</strong></p><p>Any delivery of streams not in compliance with the delivery specifications of the applicable shipper agreement which the applicant has entered into with the terminal will be considered as off-spec oil. The terminal reserves all its rights according to the applicable shipper agreement and will revert with any potential consequences.</p><p>The applicant is requested to be available for daily contact until the exported crude oil complies with the delivery specifications as set out in the applicable shipper agreement.</p><p><strong>Waiver</strong></p><p>The terminal’s approval in ChemCom shall not be deemed as an acceptance of off-spec oil according to the applicable shipper agreement.</p></i>","contact":"[email protected]","contactList":["[email protected]"],"id":"c4d2d827-48e6-45a8-9fb4-dbd8e7a54a67","code":"Sture","name":"Sture"},"status":"Changed","waterAmountPerHour":1000,"volumePersentageOffspec":false,"containsStableOilEmulsion":false,"containsHighParticleAmount":false,"normalProcedure":null,"onlyWayToGetRidOf":null,"onlyWayToGetRidOfComment":null,"heightenedLra":true,"takePrecaution":true,"logEntries":[],"fileAttachments":null,"updated":"2023-04-21T10:25:25.6039958Z","updatedBy":"[email protected]","updatedByName":"Frode Torsvik","hasBeenOpened":false,"evalCapacityOk":true,"evalCapacityOkUpdatedBy":"Frode Torsvik","evalContaminationRisk":false,"evalContaminationRiskUpdatedBy":"Frode Torsvik","evalAmountOk":true,"evalAmountOkUpdatedBy":"Frode Torsvik","evalBiocidesOk":true,"evalBiocidesOkUpdatedBy":"Frode Torsvik","evalEnvImpact":null,"evalComments":null}

endpoint: https://api-chemcom-api-dev.radix.equinor.com/api/Shipment/Onshore/change

@vehecap
Copy link

vehecap commented Jan 27, 2025

Please verify is this is still an issue. If it is then fix it, if not then close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants