-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Basic Example" in docs fails when using chunkedFile
; works when using hashedFile
#596
Milestone
Comments
Could this be related to #594? |
endgame
changed the title
"Basic Example" Problem
"Basic Example" in docs fails when using Sep 27, 2021
chunkedFile
; works when using hashedFile
#547 may have fixed this; need to check. |
This was referenced Sep 27, 2021
@endgame can we add a |
I'm calling this fixed because I just uploaded a 2.8GB file using {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
module Main where
import Control.Exception
import Control.Lens
import Control.Monad.IO.Class
import qualified Data.Conduit.Combinators as C
import Data.Generics.Product
import Network.AWS
import Network.AWS.S3
import Network.HTTP.Client
import System.IO
main :: IO ()
main = do
let r = NorthVirginia
lgr <- newLogger Trace stdout
env <- newEnv Discover <&> set (field @"envLogger") lgr . set (field @"envRegion") r
res <- runResourceT $ do
body <- chunkedFile defaultChunkSize "/path/to/bigfile.dat"
send env $ newPutObject "bucketName" "bigfile.dat" body
print res |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I received an error (below) when running the basic example. Using
hashedFile
instead works fine.The text was updated successfully, but these errors were encountered: