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

Request-URI Too Large for views.publish #67

@ryneandal

Description

@ryneandal

Description

As mentioned in jolicode/slack-php-api#111, when some of our users try to include a lot of data in our custom app, they notice the message they attempted to post isn't created like they expect. Error log is in the bug report below.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

Our company slack when using the custom app.

Development environment:

A secondary, free-tier Slack environment running the same app integration.

Steps to reproduce:

  1. Attempt to publish a form with a plain text input that has a length of 2,954+ characters and 65+ lines
  • Note: This only fails on our production environment, so it may be related to the volume of API interactions as well.

Expected result:

We expect the message body to be posted correctly.

Actual result:

Message is refused and not posted.

Attachments:

Error log/response:

[11-Oct-2021 14:39:10 America/New_York] PHP Fatal error:  Uncaught Http\Client\Common\Exception\ClientErrorException: Request-URI Too Large in /srv/www/slackbots/public/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php:83
Stack trace:
#0 /srv/www/slackbots/public/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php(65): Http\Client\Common\Plugin\ErrorPlugin->transformResponseToException(Object(Nyholm\Psr7\Request), Object(Nyholm\Psr7\Response))
#1 /srv/www/slackbots/public/vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php(31): Http\Client\Common\Plugin\ErrorPlugin->Http\Client\Common\Plugin\{closure}(Object(Nyholm\Psr7\Response))
#2 /srv/www/slackbots/public/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php(66): Http\Client\Promise\HttpFulfilledPromise->then(Object(Closure))
#3 /srv/www/slackbots/public/vendor/php-http/client-common/src/PluginChain.php(48): Http\Client\Common\Plugin\ErrorPlugin->handleRequest(Object(Nyholm\Psr7\Request), Object(Closure), Object(Http\Client\Common\PluginChain))
#4 /srv/www/slackbots/public/vendor/php-http in /srv/www/slackbots/public/vendor/php-http/client-common/src/Plugin/ErrorPlugin.php on line 83```

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