We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b319cb + 557fce2 commit b3d34e3Copy full SHA for b3d34e3
src/gitlabHelper.ts
@@ -116,7 +116,7 @@ export class GitlabHelper {
116
*/
117
async getAttachment(relurl: string) {
118
try {
119
- const attachmentUrl = this.host + '/' + this.projectPath + relurl;
+ const attachmentUrl = this.host + '/-/project/' + this.gitlabProjectId + relurl;
120
const data = (
121
await axios.get(attachmentUrl, {
122
responseType: 'arraybuffer',
@@ -129,7 +129,7 @@ export class GitlabHelper {
129
).data;
130
return Buffer.from(data, 'binary');
131
} catch (err) {
132
- console.error(`Could not download attachment #${relurl}.`);
+ console.error(`Could not download attachment #${relurl}: ${err.response.statusText}`);
133
return null;
134
}
135
0 commit comments