Coder Social home page Coder Social logo

go-srrdb-api's People

Contributors

hashworks avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pixibixi

go-srrdb-api's Issues

"Failed to parse upload result."

Hi, I realise this is a bit old but I imagined it would still work, but I'm facing a issue.

I was trying to recompile to debug myself until I noticed the code for the CLI wrapper is not published? Might be that I'm a Go noob as well ๐Ÿ˜„

The issue I'm facing is this:

srrdb --username=realusername--password=realpassword  --release=full.releasename.here-grouptoo --folder=Sample -u sample-the.release.SxxExx-group.srs

sample-the.release.SxxExx-group.srs: Failed to upload stored file - Failed to parse upload result.

I created a breakpoint on https://github.com/hashworks/go-srrdb-API/blob/v1.1.0/srrdb/srrdb.go#L241

Thread 7 "srrdb" hit Breakpoint 1, github.com/hashworks/go-srrdb-API/srrdb.UploadStoredFile (fp=..., dirname=..., folder=..., jar=0xc0000ff080, ~r4=..., 
    ~r5=...) at /usr/local/go/pkg/mod/github.com/hashworks/[email protected]/srrdb/srrdb.go:241
241	/usr/local/go/pkg/mod/github.com/hashworks/[email protected]/srrdb/srrdb.go: No such file or directory.

(gdb) info locals
w = <optimized out>
bytes = {
  array = 0xc00054e000 "<div style=\"white-space:nowrap;overflow:hidden;text-overflow:ellipsis;\">Add file to full.releasename.here-grouptoo</div>\r\n<form action=\"/release/add/full.releasename.here-grouptoo\" enc"..., len = 621, cap = 1536}
&b = 0xc0000ff110
f = 0xc0005c0150
err = {tab = 0x0, data = 0x0}
fw = <optimized out>
req = 0xc00013a300
client = 0xc00054e000
response = <optimized out>
res = <optimized out>

Did I do something wrong or is there a error in the script? Looks like we are seeing the dialog as if we were trying to add files manually.

Thanks!

Search fails to unmarshal json

$ srrdb -s Bughunter
Failed to search for query: json: cannot unmarshal number into Go struct field SearchResponse.resultsCount of type string

Looks like the SearchResponse is no longer correct โ€“ ResultCount now finally seems to be a number, not a string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.