Skip to content

Receiving cURL Error 92 hitting any endpoint #21

@jamacon36

Description

@jamacon36

Hey, thanks for the API!
I'm getting an error using the hitting any endpoint with curl and catching it reveals it to be error 92:
"HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)"

My implementation:

<?php
$user = get_user($id);        
$agile_data = array(
  'tags' => array('Web User'),
  'properties' => array(
       array(// First Name
         'name' => 'first_name',
          'value' => $user['first_name'],
          'type' => 'SYSTEM'
       ),
       array(// Last Name
         'name' => 'last_name',
         'value' => $user['last_name'],
         'type' => 'SYSTEM'
       ),
       array(// Email
         'name' => 'email',
         'value' => $user['email'],
         'type' => 'SYSTEM'
       ),
       // ETC...
  )
);
$agile_json = json_encode($agile_data);
curl_wrap('contacts', $agile_json, 'POST', 'application/json');

Here's my server setup:

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Apache 2.4
config
config-runtime
mod_bwlimited
mod_cgi
mod_deflate
mod_expires
mod_headers
mod_mpm_prefork
mod_proxy
mod_proxy_fcgi
mod_proxy_http
mod_proxy_wstunnel
mod_ruid2
mod_security2
mod_ssl
mod_unique_id
tools

PHP 7.2
libc-client
pear
php-bcmath
php-calendar
php-cli
php-common
php-curl
php-devel
php-fpm
php-ftp
php-gd
php-imap
php-litespeed
php-mbstring
php-mysqlnd
php-pdo
php-posix
php-sockets
php-xml
runtime

I'm able to log in and hit the endpoint just fine from a browser using the same creds. Any help would be appreciated!

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions