Bug[source-url]: while entering source url showing 500 internal server error
🐛 Bug Report
Describe the bug
while sending the record_url through uploads or patch ,server is sending 500 internal server error.
Reason due to we are inserting the source_url which is validated through pydantic inbuilt HttpUrl which returns an url object into the database where the model defined source_url as str. Has to convert the url object to string before inserting it into database.
To Reproduce
Steps to reproduce the behavior:
- Go to 'api.corpus.swecha.org'
- Click on any record upload or patch route
- enter source url and send request
- See error
Expected behavior
The record should be updated with the valid given source_url.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- OS: [e.g. iOS, Windows, Linux]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
📌 Follow semantic issue titling convention:<type>(<scope>): <description>(e.g.,fix(auth): resolve jwt token expirationorchore(deps): update dependencies).