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

Downloading asset only works with the 1st service, not others. #555

Open
FilipMasar opened this issue Jul 18, 2024 · 0 comments
Open

Downloading asset only works with the 1st service, not others. #555

FilipMasar opened this issue Jul 18, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@FilipMasar
Copy link
Collaborator

Describe the bug
If asset has multiple services, the DownloadHandler works only with the first service. If I try to download asset after I buy e.g. 2nd service, I get Invalid service index. error.

To Reproduce
Steps to reproduce the behavior:

  1. Publish asset with 2 download services (free or paid doesn't matter)
  2. Buy/Get datatoken for 2nd service
  3. Request the download url
  4. See the error Invalid service index. in the file

Expected behavior
Get access to the asset.

Additional context
Problem is in this comparison https://github.com/oceanprotocol/ocean-node/blob/develop/src/components/core/utils/validateOrders.ts#L114
Values of those variables are

BigInt(serviceIndex) = 1n
eventServiceIndex = 0n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant