cy.intercept('POST', '/api/create_payment_intent', {
fixture: 'payment_intent.json', // fixture file with mocked response
}).as('createPaymentIntent');
payment_intent.json file exists at cypress/fixtures/ directory filled with valid json.
Error:
[1] [1] Error: An error was thrown while processing a network event: A fixture file could not be found at any of the following paths:
[1] [1]
[1] [1] > cypress/fixtures/payment_intent.json
[1] [1] > cypress/fixtures/payment_intent.json{{extension}}
[1] [1]
[1] [1] Cypress looked for these file extensions at the provided path:
[1] [1]
[1] [1] > .json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip
[1] [1]
[1] [1] Provide a path to an existing fixture file.
[1] [1]
[1] [1] Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Neo4j Aura Console - Common`
[1] [1] Error: A fixture file could not be found at any of the following paths:
[1] [1]
[1] [1] > cypress/fixtures/payment_intent.json
[1] [1] > cypress/fixtures/payment_intent.json{{extension}}
[1] [1]
[1] [1] Cypress looked for these file extensions at the provided path:
Hoe does one debug this when I have done exactly what the documentation has stated?
Related
I am trying to get into animations using the Plots package. I am following this tutorial: https://docs.juliaplots.org/latest/animations/
However when trying to execute the program I get the following error:
ERROR: LoadError: failed process: Process(`/home/olep/.julia/artifacts/7f40eeb66d90d3026ae5fb68761c263b57adb840/bin/ffmpeg -v 16 -framerate 3 -i /tmp/jl_h1sGUw/%06d.png -i /tmp/jl_h1sGUw/palette.bmp -lavfi paletteuse=dither=sierra2_4a -loop 0 -y /home/olep/Documents/Studium/Semester2/tutorial_anim_fps30.gif`, ProcessSignaled(11)) [0]
Stacktrace:
[1] run
# ./process.jl:438 [inlined]
[2] (::FFMPEG.var"#4#6"{Cmd})(command_path::String)
# FFMPEG ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:114
[3] (::JLLWrappers.var"#2#3"{FFMPEG.var"#4#6"{Cmd}, String})()
# JLLWrappers ~/.julia/packages/JLLWrappers/bkwIo/src/runtime.jl:49
[4] withenv(::JLLWrappers.var"#2#3"{FFMPEG.var"#4#6"{Cmd}, String}, ::Pair{String, String}, ::Vararg{Pair{String, String}, N} where N)
# Base ./env.jl:161
[5] withenv_executable_wrapper(f::Function, executable_path::String, PATH::String, LIBPATH::String, adjust_PATH::Bool, adjust_LIBPATH::Bool)
# JLLWrappers ~/.julia/packages/JLLWrappers/bkwIo/src/runtime.jl:48
[6] #invokelatest#2
# ./essentials.jl:708 [inlined]
[7] invokelatest
# ./essentials.jl:706 [inlined]
[8] #ffmpeg#7
# ~/.julia/packages/JLLWrappers/bkwIo/src/products/executable_generators.jl:7 [inlined]
[9] ffmpeg
# ~/.julia/packages/JLLWrappers/bkwIo/src/products/executable_generators.jl:7 [inlined]
[10] #exe#2
# ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:113 [inlined]
[11] ffmpeg_exe
# ~/.julia/packages/FFMPEG/aazvf/src/FFMPEG.jl:125 [inlined]
[12] buildanimation(anim::Animation, fn::String, is_animated_gif::Bool; fps::Int64, loop::Int64, variable_palette::Bool, verbose::Bool, show_msg::Bool)
# Plots ~/.julia/packages/Plots/vVVub/src/animation.jl:98
[13] #gif#232
# ~/.julia/packages/Plots/vVVub/src/animation.jl:64 [inlined]
[14] top-level scope
# ~/Documents/Studium/Semester2/EM2/HW/01/animTest.jl:11
in expression starting at /home/olep/Documents/Studium/Semester2/EM2/HW/01/animTest.jl:11
I am on manjaro (Arch linux).
Any ideas what’s going wrong?
Manjaro:
Reinstall julia -> julia-bin
sudo pamac install julia-bin
When I Use php artisan vendor:publish This Code Ask To me for chose Pack for publish and When i type package Number Like (10) and Press Enter I Have This Error
E:\laravel\okdd>11
'11' is not recognized as an internal or external command,
operable program or batch file.
This is My Package's List When i type php artisan vendor:publish
E:\laravel\okdd>php artisan vendor:publish
Which provider or tag's files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: Anhskohbo\NoCaptcha\NoCaptchaServiceProvider
[2 ] Provider: Cviebrock\EloquentSluggable\ServiceProvider
[3 ] Provider: Facade\Ignition\IgnitionServiceProvider
[4 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
[5 ] Provider: Fruitcake\Cors\CorsServiceProvider
[6 ] Provider: Illuminate\Foundation\Providers\FoundationServiceProvider
[7 ] Provider: Illuminate\Mail\MailServiceProvider
[8 ] Provider: Illuminate\Notifications\NotificationServiceProvider
[9 ] Provider: Illuminate\Pagination\PaginationServiceProvider
[10] Provider: Laravel\Tinker\TinkerServiceProvider
[11] Provider: Shetabit\Payment\Provider\PaymentServiceProvider
[12] Provider: anlutro\LaravelSettings\ServiceProvider
[13] Tag: config
[14] Tag: cors
[15] Tag: flare-config
[16] Tag: ignition-config
[17] Tag: laravel-errors
[18] Tag: laravel-mail
[19] Tag: laravel-notifications
[20] Tag: laravel-pagination
[21] Tag: migrations
[22] Tag: views
>
Aborted.
I have had the same issue and I found that u could type this:
php artisan vendor:publish --provider="Shetabit\Payment\Provider\PaymentServiceProvider"
So you just write the provider name/path that you want to be published inside
--provider="Here".
Unfortunately, I couldn't find the reason why this error happens.
I am debugging an issue where I am doing my development inside of a Docker container, but Jekyll is not properly updating static HTML or CSS files after the first time it has been written. I have added the following code to static_file.rb after line 83:
sha256_src = Digest::SHA256.file path
sha256_dst = Digest::SHA256.file dest_path
fail "invalid file copy: #{path} / #{dest_path}" unless sha256_src == sha256_dst
And I see that the fail triggered because the hash does not match. Instead, an older version of the static file at path has been copied to dest_path. I thought I was losing my mind, but I know that Docker uses layered file systems and so I wonder if I am hitting some kind of bug or known issue.
Are there any known issues with using the following technologies in tandem with each other:
Jekyll
Docker containers
Linux containers
FileUtils cp method
Ruby 2.2.3p173
I have had to work around it by running the following command:
cp s5/*.css _site/s5/
cp s5/*.html _site/s5/
Instead of having it work automatically for me with jekyll build.
Here is how I am linking my files to the docker image:
export ABSPATH=$(cd "$(dirname "$0")"; cd ../; pwd)
docker run -d --name static -t -i -p 4000:4000 -p 2422:22 --link static-db:db -v "$ABSPATH:/mnt/app" me/static:0.0.2 /sbin/my_init --enable-insecure-key
Docker version:
Client:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 18:01:15 UTC 2015
OS/Arch: darwin/amd64
Server:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 18:01:15 UTC 2015
OS/Arch: linux/amd64
Docker info:
Containers: 10
Images: 265
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 285
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.10-boot2docker
Operating System: Boot2Docker 1.8.3 (TCL 6.4); master : af8b089 - Mon Oct 12 18:56:54 UTC 2015
CPUs: 1
Total Memory: 3.859 GiB
Name: dev
ID: ZY6F:2VSO:EDRL:TWYE:JAS6:5GC3:PPAO:TNA6:KCCB:HFLC:4IQB:5BYE
Debug mode (server): true
File Descriptors: 21
Goroutines: 33
System Time: 2015-10-18T18:36:20.08630971Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: me
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox
I am running this linked to a volume on OSX.
Here is an interactive session using binding.pry inside of static_file.rb. You can see that FileUtils.cp is not working properly.
In step 9-10 one can see I am manually invoking the FileUtils::cp command, and the resulting file hash is aa75cd.... I even try using FileUtils.cp to copy my original file to a different file path without success. However, in step 20-21, when I invoke the shell cp command directly using cp, it works and the resulting file has the proper hash of 724707....
Parsing Haml layouts...done.
Parsing Scss layouts...done.
Configuration file: /mnt/app/_config.yml
Source: /mnt/app
Destination: /mnt/app/_site
Generating...
From: /usr/local/lib/ruby/gems/2.2.0/gems/jekyll-2.5.3/lib/jekyll/static_file.rb # line 92 Jekyll::StaticFile#write:
77: def write(dest)
78: dest_path = destination(dest)
79:
80: return false if File.exist?(dest_path) and !modified?
81: ##mtimes[path] = mtime
82:
83: FileUtils.mkdir_p(File.dirname(dest_path))
84: FileUtils.rm(dest_path) if File.exist?(dest_path)
85:
86: FileUtils.cp(path, dest_path)
87:
88: sha256_src = Digest::SHA256.file path
89: sha256_dst = Digest::SHA256.file dest_path
90:
91: if sha256_src != sha256_dst
=> 92: binding.pry
93: end
94: puts "invalid file copy: #{path} / #{dest_path}" unless sha256_src == sha256_dst
95:
96: true
97: end
[1] pry(#<Jekyll::StaticFile>)> path
=> "/mnt/app/styles/scruff5.css"
[2] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[3] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[4] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[5] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[6] pry(#<Jekyll::StaticFile>)> FileUtils.rm(dest_path)
=> ["/mnt/app/_site/styles/scruff5.css"]
[7] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
Errno::ENOENT: No such file or directory # rb_sysopen - /mnt/app/_site/styles/scruff5.css
from /usr/local/lib/ruby/2.2.0/digest.rb:49:in `initialize'
[8] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[9] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[10] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[11] pry(#<Jekyll::StaticFile>)> dest_path
=> "/mnt/app/_site/styles/scruff5.css"
[12] pry(#<Jekyll::StaticFile>)> dest_path = dest_path + '-2'
=> "/mnt/app/_site/styles/scruff5.css-2"
[13] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[14] pry(#<Jekyll::StaticFile>)> FileUtils.cp(path, dest_path)
=> nil
[15] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920>
[16] pry(#<Jekyll::StaticFile>)> (Digest::SHA256.file dest_path).hexdigest
=> "aa75cd20ddf51b86ec2344002532f08891e05eb1a0a9f7e5f99d8fda05c5c920"
[17] pry(#<Jekyll::StaticFile>)> (Digest::SHA256.file path).hexdigest
=> "72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908"
[18] pry(#<Jekyll::StaticFile>)> FileUtils.rm dest_path
=> ["/mnt/app/_site/styles/scruff5.css-2"]
[19] pry(#<Jekyll::StaticFile>)> dest_path = '/mnt/app/_site/styles/scruff5.css'
=> "/mnt/app/_site/styles/scruff5.css"
[20] pry(#<Jekyll::StaticFile>)> `cp #{path} #{dest_path}`
=> ""
[21] pry(#<Jekyll::StaticFile>)> Digest::SHA256.file dest_path
=> #<Digest::SHA256: 72470716291c6fef0c8c2151a0d0997f0991396cda964ba48e3cbb65cc7f7908>
[22] pry(#<Jekyll::StaticFile>)>
After doing the above analysis and determining that [FileUtils.cp][1] seemed to be at the root of this issue, I downgraded from Ruby 2.2.1 to Ruby 2.1.7p400, and this issue now appears to be corrected. It would appear that Ruby 2.2.1 has a potentially version serious regression in FileUtils.
i m trying to install kannel in centos i have downloaded the tar file and used following commands
./configure ---prefix=/etc/kannel/
make
make install
then
vi kannel.conf
group = core
admin-port = 1300
admin-password = fxxbar
box-allow-ip = "127.0.0.1"
admin-allow-ip = "127.0.0.1"
group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
#log-file = "/tmp/smsbox.log"
#log-level = 0
#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...
group = sendsms-user
username = tester
password = foobar
#user-allow-ip = ""
#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"
# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.
group = sms-service
keyword = default
text = "No service specified"
Then I used this command sbin/bearerbox kannel.conf and get the following result
2013-12-12 04:12:21 [27491] [0] INFO: SSL not supported, no SSL initialization d one.
2013-12-12 04:12:21 [27491] [0] INFO: HTTP: Opening server at port 1300.
2013-12-12 04:12:21 [27491] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2013-12-12 04:12:21 [27491] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thr ead)
2013-12-12 04:12:21 [27491] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_ run)
2013-12-12 04:12:21 [27491] [0] DEBUG: starting smsbox connection module
2013-12-12 04:12:21 [27491] [0] ERROR: Missing smsbox-port variable, cannot star t smsboxes
2013-12-12 04:12:21 [27491] [0] INFO: Set SMS resend frequency to 60 seconds.
2013-12-12 04:12:21 [27491] [0] INFO: SMS resend retry set to unlimited.
2013-12-12 04:12:21 [27491] [0] DEBUG: smsbox MO concatenated message handling e nabled
2013-12-12 04:12:21 [27491] [0] INFO: DLR rerouting for smsc id <FAKE> disabled.
2013-12-12 04:12:21 [27491] [0] DEBUG: Started thread 4 (gw/smsc/smsc_fake.c:fak e_listener)
2013-12-12 04:12:21 [27491] [0] DEBUG: Started thread 5 (gw/bb_smscconn.c:sms_ro uter)
2013-12-12 04:12:21 [27491] [0] INFO: ----------------------------------------
2013-12-12 04:12:21 [27491] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2013-12-12 04:12:21 [27491] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) map s to pid 27491.
2013-12-12 04:12:21 [27491] [4] DEBUG: Thread 4 (gw/smsc/smsc_fake.c:fake_listen er) maps to pid 27491.
2013-12-12 04:12:21 [27491] [5] DEBUG: Thread 5 (gw/bb_smscconn.c:sms_router) ma ps to pid 27491.
2013-12-12 04:12:21 [27491] [0] INFO: MAIN: Start-up done, entering mainloop
2013-12-12 04:12:21 [27491] [0] DEBUG: smsc_fake: start called
2013-12-12 04:12:21 [27491] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) map s to pid 27491.
2013-12-12 04:12:21 [27491] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to p id 27491.
The problem is it get stuck in the last line
"DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 27491."
and happening nothing after that what shld i do.
In your case it is correct that nothing happened.
If you want sent sms:
Start the SMSBox
Open a new terminal and type the following command
$ smsbox path_to_the_configuration_file
You can use FAKESMSC to sent fake sms:
Open a new terminal and type:
$ test/fakesmsc
it is not a real SMS center, if you want sent real sms configure the SMS Centre Group
(see User's Guide)
I think this configuration is wrong.You can use configuration file I used. This google document has many details. If you just want configuration file, just copy and paste the code.
For core group. Its like this
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = abcd #any admin pasword
status-password = **** #your password for this username
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1" #local host IP address
sms-resend-retry = 1
2013-12-12 04:12:21 [27491] [0] ERROR: Missing smsbox-port variable,
cannot star
You have to specify the "smsbox-port"
Does there exist some kind of service, where I can input a system "enum type" (or similar) and get a list of all the possible values?
When debugging with gdb and you encounter an error, it would be nice to quickly get the name of the error, without having to look through related headers files of the header file where the type is defined.
For example the type kern_return_t in OS X is defined in /usr/include/mach/i386/kern_return.h which basically only contains one line of content (no includes):
typedef int kern_return_t;
The valid values are defined in /usr/include/mach/kern_return.h, which makes sense, but I can never remember this path and I would like to speed up this process.
Example:
Input: kern_return_t
Output:
0 | KERN_SUCCESS
1 | KERN_INVALID_ADDRESS
2 | KERN_PROTECTION_FAILURE
3 | KERN_NO_SPACE
4 | KERN_INVALID_ARGUMENT
5 | KERN_FAILURE
6 | KERN_RESOURCE_SHORTAGE
7 | KERN_NOT_RECEIVER
8 | KERN_NO_ACCESS
9 | KERN_MEMORY_FAILURE
...
This is what open -h was made for. I recommend combining it with -s however, like so:
$ open -s iOS -h kern_return
kern_return?
[0] cancel
[1] all
[2] /usr/include/mach/i386/kern_return.h
[3] /usr/include/mach/kern_return.h
[4] /usr/include/mach/machine/kern_return.h
[5] /System/Library/Frameworks/Kernel.framework/Headers/mach/i386/kern_return.h
[6] /System/Library/Frameworks/Kernel.framework/Headers/mach/kern_return.h
[7] /System/Library/Frameworks/Kernel.framework/Headers/mach/machine/kern_return.h
Which header(s) for "kern_return"?