Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




IssueService.CreateAttachment() returns 404 error

web-app

I'm using Gemini v. 3.5.6, and when I try to use the CreateAttachment method, I keep getting a 404 error.  I've looked in the samples and can't find a place where this method is invoked.  Is it even present in my version of Gemini, and if so, why do I get this error?

photosinensis
· 1
photosinensis
Replies (7)
helpful
0
not helpful

Can you please confirm your Gemini version (3.5.6 is not a valid one)?

As for the 404, does the issue id exist in your system?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Sorry, it's 3.5.4.

And yeah, the issueID exists.


photosinensis
· 1
photosinensis
helpful
0
not helpful

Have just tested this and seems to work for me.
Can you post a code sample? Did you set the issue id and project id for the File?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yeah, I've included the project ID, and it still doesn't work.

Code:

            IssueEN data = issues.GetIssue(8590);
            FileEN file = new FileEN();
            string path = "C:\Documents and Settings\jmccormick\My Documents\parts.csv";
            file.FileData = System.IO.File.ReadAllBytes(path);
            file.FileName = "parts";
            file.IssueID = 8590;
            file.ProjectID = data.ProjectID;
            issues.CreateAttachment(8590, file);

The last line throws the 404 error, obviously.  If it doesn't give me a 404, the connection times out.


photosinensis
· 1
photosinensis
helpful
0
not helpful

Is the file (attachment) big?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Using a smaller file works.  Is there something I can do to ensure that any file is uploaded?  I've increased the connection time out limit to an hour, and it still chokes on the bigger file.


photosinensis
· 1
photosinensis
helpful
0
not helpful

You probably need to change the http timeout and maybe the maximum file size:

    <httpRuntime executionTimeout="90" maxRequestLength="44096" useFullyQualifiedRedirectUrl="false"/>


Saar Cohen
· 5000
Saar Cohen