as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

Monitor Traffic with Network Proxy

Vega Studio’s Network Proxy tool monitors and troubleshoots network activity in Vega apps. Built on the mitm-http-proxy library, it acts as a intermediary proxy between your app and its server, allowing inspection and modification of network traffic.

The tool helps:

  • Debug network issues
  • Inspect API calls
  • Analyze performance bottlenecks
  • Verify data transfer in your Vega app

The tool captures traffic from:

  • HTTP
  • HTTPS
  • WebSocket
  • XMLHttpRequest
  • Media Player requests

Prerequisites

You must have the following requirements:

  • Installed Vega SDK and Vega Studio
  • Fire TV Stick device or Vega Virtual Device
  • A Vega app project

Setup Network Proxy

  1. Open the command palette in Visual Studio (VS Code).

    Mac: Shift + Command ⌘ + P

    Linux: Ctrl + Shift + P

    Image shows where to enter Vega: Start Network Proxy
    Command palette
  2. Enter Start Network Proxy.

    Image shows where to configure Network Proxy settings
    Network Proxy settings

    The Setup Network Proxy user interface (UI) appears with Capture Call Stack and Enable SSL Proxy selected by default.

  3. Enter 4-digit port number in the Setup Network Proxy UI.

  4. Click Submit.

    The Network Proxy user interface opens, displaying your device serial number.

  5. Set up port forwarding:

    Port forwarding directs the device to send requests meant for a specific port to your computer instead.

    At the command prompt, run:

    Copied to clipboard.

    vda reverse tcp:<remote-port> tcp:<local-port>
    

    Replace <remote-port> with the port you configured in the proxy-config.json file on your Fire TV Stick. Replace <local-port> with the port you configured for Network Proxy on your development machine.

    Example:

    Copied to clipboard.

    vda reverse tcp:8888 tcp:8888 
    

    You should see a confirmation message indicating that the proxy has started. The proxy tool automatically:

    • Creates assets/raw directory
    • Generates proxy-config.json
    • Creates SSL certificate (ca.pem) (this option is enabled by default)

Network Proxy user interface

Network Proxy main interface consists of:

  • Control panel
  • Traffic view
  • Detailed panel

Control panel

Network Proxy UI shows control panel sections
Network Proxy control panel

The control panel provides options to:

  1. Start or Stop Recording

    a. Start Recording - Begins capturing all network activity. When recording:

    • The tool displays all network traffic
    • You can monitor requests and responses in real-time

    b. Stop Recording - Stops capturing new requests or responses.

  2. Clear - Resets the session and removes all captured data
  3. Settings - Provides options to:

    a. Export - Saves sessions to JSON format in your Vega app's generated folder.

    b. Import - Loads previously exported sessions.

  4. Disable SSL Proxying - Controls HTTPS traffic interception.

    If enabled, the tool intercepts, decrypts, and displays HTTPS traffic in the interface.

    If disabled, the tool doesn't decrypt HTTPS traffic.

  5. Enable breakpoint settings

    When you mark the Enable Breakpoint Settings checkbox, it activates the breakpoint feature and lets you set a breakpoint.

    Set a breakpoint

    The Network Proxy UI provides option to set a breakpoint
    Breakpoint setting

    To set a breakpoint, click the + icon next to any network call. The tool pauses the traffic at that point.

    Abort, cancel, or resume traffic flow

    The Network Proxy UI provides option to abort request, cancel breakpoint, or resume normal flow
    Network Proxy UI shows a breakpoint is triggered

    When the tool triggers a breakpoint, click the respective button:

    • Abort - Cancels the request
    • Cancel - Stops the breakpoint
    • Resume - Continues normal flow

Traffic view

Network Proxy displays each intercepted request or response with the following details:

  • Status - The HTTP response code, indicating the result of the request (for example, 200 or 404).
  • Size - The size of the response body.
  • Method - The HTTP method used (for example, GET, POST, PUT, or DELETE).
  • Url - The full URL of the request, including the domain and path.
  • Start Time - The timestamp when the response was sent.
  • Duration - The time taken to process the request and receive the response (in milliseconds).

    The bottom panel of Network Proxy UI provides insights into the selected network traffic
    Image shows the bottom panel of Network Proxy UI

Detail panel

When you select a specific row of intercepted data, a new panel opens at the bottom, providing insights into the selected network traffic.

  1. Overview - Provides a high-level summary of the selected traffic, including general metadata and status information.
  2. Contents - Displays the full details of the request and response, such as headers, body content, and other relevant data.
    • Request Headers - Full set of headers sent with the request.

      • Response Headers - Full set of headers sent with the response.
    • Body Content - Raw or formatted body (JSON, HTML).

  3. Summary - Provides a summary of key metrics, such as host url, body size, Mime type, status code, time related to the selected network traffic.

Cleanup after debugging

Before you submit your app for production:

  1. Delete the proxy-config.json file and any certificate file (for example, assets/raw/ca.pem) from the app.
  2. Clean your project:

    Copied to clipboard.

    kepler clean
    
  3. Build your app.

Troubleshooting

If you encounter issues while using the Vega Studio's Network Proxy tool, see Troubleshoot Network Proxy Issues.


Last updated: Sep 30, 2025