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

Request-URI Too Large for views.publish #67

Open
5 of 9 tasks
ryneandal opened this issue Oct 12, 2021 · 0 comments
Open
5 of 9 tasks

Request-URI Too Large for views.publish #67

ryneandal opened this issue Oct 12, 2021 · 0 comments

Comments

@ryneandal
Copy link

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```

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant