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

Received error "Not a valid stream" from API when attempting to delete a video #63

Open
inturbidus opened this issue Jul 8, 2016 · 2 comments

Comments

@inturbidus
Copy link

inturbidus commented Jul 8, 2016

As you can see I'm taking a direct stream model and passing it to the api with an updated deleted field.

Code calling update:

- (void)deleteButtonTapped:(id)sender {
    UIButton *deleteButton = (UIButton*)sender;
    NSInteger index = deleteButton.tag;
    **KFStream *stream = self.streams[index];**
    stream.deleted = YES;
    [[KFAPIClient sharedClient] updateMetadataForStream:stream callbackBlock:^(KFStream *updatedStream, NSError *error) {
        if (nil != error) {
            NSLog(@"Error deleting video");
        }
    }];
}

outgoing jsonString:

{
  "state" : null,
  **"stream_id" : "ba50d609-6efb-46c3-9c44-628c01e134d5",**
  "time_started" : "05\/13\/2016 17:44:48",
  "kickflip_url" : "https:\/\/kickflip.io\/ba50d609-6efb-46c3-9c44-628c01e134d5",
  "end_lat" : null,
  "thumbnail_url" : "http:\/\/kick-us-east-1.s3.amazonaws.com\/voterockit\/gyoulcexzyje\/ba50d609-6efb-46c3-9c44-628c01e134d5\/thumb.jpg",
  "deleted" : true,
  "stream_url" : "https:\/\/d3mf59dq42lc44.cloudfront.net\/voterockit\/gyoulcexzyje\/ba50d609-6efb-46c3-9c44-628c01e134d5\/vod.m3u8",
  "city" : null,
  "start_lat" : null,
  "stream_type" : null,
  "end_lon" : null,
  "time_finished" : "05\/13\/2016 17:44:52",
  "user_username" : "gyoulcexzyje",
  "start_lon" : null,
  "country" : null
}

Error:
{success=false, reason=Not a valid stream. Make sure you supply a correct 'stream_id'., code=301}

@inturbidus
Copy link
Author

So it looks like this is because I was trying to delete a video of a user who I'm not logged in as, however, since we don't use a login, we can't login users who have created videos.. meaning we cannot delete junk videos. Of course some sort of administrative access would be preferred, but looking into if a user can login to delete videos without having registered.

@inturbidus
Copy link
Author

@OnlyInAmerica is there a way to delete these videos from users who don't have a password?

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

No branches or pull requests

1 participant