← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

GetShare returns Nothing #89

Open
Open

Description

@DeepHyperspace

Hi dkarzon,

i have problems by getting the share URL. The ShareResponse is successfull but the returned Object is always Nothing so i get a NullReferenceException.

I can upload files and create folders. But anything else, for example getMetaData or get the share returns always Nothing. Is it my fault or did they change something in the API of Dropbox?

I use the Sandbox mode.

client.GetShareAsync("/test.txt", AddressOf share_success, AddressOf share_failed)

The Returned Object of the Type (DropNet.Models.ShareResponse) is Nothing

Activity

  1. dkarzon commented on Feb 5, 2013

    @dkarzon
    Member

    Hi,
    Are you able to send me a working solution with this error?
    Are you able to debug the Http request with fiddler? That will determine if its actually getting returned from the API or not.
    From the given code I can't really tell where the problem is.
    Does your Client have UseSandbox set to true?

  2. DeepHyperspace commented on Feb 7, 2013

    @DeepHyperspace
    Author

    That is all i do:

    Public Class Form1

    Dim client As DropNet.DropNetClient
    
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        client = New DropNet.DropNetClient("apiKey", "appSecret", "userToken", "userSecret")
        client.UseSandbox = True
    End Sub
    
    
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        client.GetShareAsync("/test1.docx", AddressOf share_success, AddressOf share_failed)
    End Sub
    
    
    Sub share_success(success As DropNet.Models.ShareResponse)
        If IsNothing(success) Then
            MsgBox("Function returned nothing")
        Else
            MsgBox("Function returned an object")
        End If
        MsgBox("successful")
    End Sub
    
    
    Sub share_failed(exception As DropNet.Exceptions.DropboxException)
        MsgBox("failed")
    End Sub
    

    End Class

    Of course i have filled in the right api key and so on. I dont want to post it here. :-) So upload and download works fine. But getting any infos somehow fails.
    What happens is... the messagebox "Function returned nothing" pops up.

    I downloaded fiddler but i dont know what to do. Tell me please.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions