-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error: Cannot read properties of undefined (reading 'uaa') #75
Comments
HiAelElliotBanyard, Regards, |
Hi @rashmiangadi11, |
Can we have a call tomorrow. Could u please schedule a meeting |
Do you mean me? |
Yes otherwise could you please send your email address and preferred time slot to schedule a meeting |
You can contact me at [email protected] . I am available from 10 am until 12 pm and from 1 pm until 4 pm GMT+2. Kind Regards |
Could you please tell me the timezone of yours to schedule a meeting. |
Hi @AelElliotBanyard : Ideal setup would be to deploy your application on BTP and then run it against a provisioned Document Management Integration option instance. Have you tried testing the application using the step as suggested in the README? |
Hi @ashishjain14 yes. the application is deployed to BTP and works fine there but the problem is I cannot test implemented features locally and this makes the development process very long. |
@rashmiangadi11 Timezone is in the comment but I am in CEST. |
@AelElliotBanyard : Can you share more details on the issue you are facing with your local development? |
@ashishjain14: I have an Entity which is using attachments. This Entity has odata draft enabled. When creating an Object and hitting save i get the error message mentioned in the title of issue. Because of the BTP that we are using we have implemented the fix with the versioned repository. |
@ashishjain14 Any Updates? |
So If I understand correctly you are using a custom version of library where you have added a custom fix to support versioned repo? |
no using the normal version with npm install ... and yes this is the fix: const sdmUtils = require("@cap-js/sdm/lib/util/index");
// Override the isRepositoryVersioned function directly in the utility module
sdmUtils.isRepositoryVersioned = function (...args) {
console.error("override isRepositoryVersioned");
return false;
}; |
Do you still the same error with non-versioned repository and using the released version of our library? |
no the fix works |
Hi @AelElliotBanyard : We are little lost into what is the actual problem here. Your initial point was local testing not working and now I see you have another problem where you are trying to override versioned repo check and running a deployment. Can you let us know what is the problem you are facing? |
there is no problem with the repo that works fine that is from issue #67 my boss comented on in this repo (@korayyersel). That is not the problem! the problem is with local development |
Can you try this blog to run the app locally(https://community.sap.com/t5/technology-blogs-by-sap/run-node-js-applications-with-authentication-locally-sap-btp-security/ba-p/13540122) . In case this does not work I suggest you to create a service now ticket. |
I'm encountering an issue with the capjs/sdm package while saving a draft in development mode.
The following error is thrown:
Cannot read properties of undefined (reading 'uaa')
Steps to Reproduce:
Start the application on local device.
Try to save a draft.
Error pops up on screen.
Expected Behavior: The draft should save successfully without errors.
Actual Behavior: The error Cannot read properties of undefined (reading 'uaa') is thrown, preventing the draft from being saved.
Environment:
capjs/sdm version: 1.2.0
Development mode
Node.js version: ^18
Other relevant dependencies or configurations: @sap/cds-dk: 7.9.2
Additional Information: This error only appears to happen in development mode.
I'm happy to provide further information if needed to help troubleshoot the issue.
The text was updated successfully, but these errors were encountered: