Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.
This repository was archived by the owner on Aug 31, 2024. It is now read-only.

Fail to upload artboards to Prott when using HTTP(S) proxy/HTTP(S)プロキシを使っている環境だとProttへのアートボードアップロードが失敗する #6

@tsukkee

Description

@tsukkee

Problem/問題

When using HTTP(S) Proxy, Prott-Sketch-Plugin fails to upload artboads although it successes to login to Prott and get a projects list.

HTTP(S)プロキシを使っている環境だと、Prott-Sketch-PluginからProttへのログイン、プロジェクト一覧の取得まではできるが、その後アートボードのアップロードが失敗する。

Expected behaviour/期待する動作

Prott-Sketch-Plugin can upload artboards when using HTTP(S) proxy.

HTTP(S)プロキシを使っている環境でも、問題なくアートボードのアップロードができること。

Possible causes and a solution/考えられる原因と対策

Getting a projects list is done with Cocoa API so it uses the system proxy settings. But, Uploading artboards is done with calling curl command directly using NSTask so I estimate that this doesn't use the system proxy settings.

This problem might be solved by using AHProxySettings or doing something same as it so that NSTask will use the system proxy settings.

プロジェクト一覧の取得はCocoaのAPIを使っているためシステム環境設定のプロキシ設定が反映されるが、アートボードのアップロードはNSTask経由でcurlを直接叩いているためシステムのプロキシ設定が反映されずに正常なPOSTが行えないものだと推測しました。

AHProxySettingsを使う、または、それと同等の方法にて、アートボードのアップロード時にもシステムのプロキシ設定が反映されるようにすることで問題が解決されると思われます。

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